summaryrefslogtreecommitdiff
path: root/www/webcopy/files/patch-webcopy.src_5
blob: 008c84356d2a97c0665b51b6a8b22177ab74f6b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- webcopy.src.orig	Sun May 21 20:24:21 2000
+++ webcopy.src	Sun May 21 20:25:51 2000
@@ -481,7 +481,7 @@
     $_=select(S); $|=1; select($_);
     if ($verbose>3) {
 	print(($post?"POST":"GET") . " $proxy$url HTTP/1.0${rn}" .
-	      "User-Agent: $agent${rn}Accept: */*${rn}$update");
+	      "User-Agent: $agent${rn}Accept: */*${rn}Host: ${host}${rn}$update");
 	print  "Authorization: $userpass${rn}" if $userpass;
 	if ($post) {
 	    print  "Content-Length: " . length($post_data) .
@@ -492,7 +492,7 @@
 	}
     }
     print S ($post?"POST":"GET") . " $proxy$url HTTP/1.0${rn}" .
-	"User-Agent: $agent${rn}Accept: */*${rn}$update";
+	"User-Agent: $agent${rn}Accept: */*${rn}Host: ${host}${rn}$update";
     print S "Authorization: $userpass${rn}" if $userpass;
     if ($post) {
 	print S "Content-Length: " . length($post_data) .