summaryrefslogtreecommitdiffstats
path: root/www/webcopy
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-05-21 11:31:02 +0000
committerknu <knu@FreeBSD.org>2000-05-21 11:31:02 +0000
commit2aa820e40405bbf461bd48397585e67e86259e47 (patch)
treec96c74f7d7994548d14731341a211ced94107bcd /www/webcopy
parent68936084d0965ecd4d8665f7672ceddce401c1ff (diff)
downloadFreeBSD-ports-2aa820e40405bbf461bd48397585e67e86259e47.zip
FreeBSD-ports-2aa820e40405bbf461bd48397585e67e86259e47.tar.gz
Add a patch to make it send a "Host:" header for HTTP/1.1 virtual hosts.
Diffstat (limited to 'www/webcopy')
-rw-r--r--www/webcopy/files/patch-af20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/webcopy/files/patch-af b/www/webcopy/files/patch-af
new file mode 100644
index 0000000..008c843
--- /dev/null
+++ b/www/webcopy/files/patch-af
@@ -0,0 +1,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) .
OpenPOWER on IntegriCloud