Skip to content

Commit 8276f34

Browse files
committed
parse head/body differently to account for multiple headers when using proxy
1 parent a3bc816 commit 8276f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2176,7 +2176,7 @@ sub s3
21762176
# remove "HTTP/1.1 100 Continue"
21772177
$item =~ s/^HTTP\/\d+\.\d+\s+100\b.*?\r?\n\r?\n//s;
21782178

2179-
my($head, $body) = $item =~ /^(.*?\r?\n)\r?\n(.*)$/s;
2179+
my($head, $body) = $file =~ /^((?:HTTP\/.*?\r?\n\r?\n)+)(.*)$/s;
21802180
print STDERR $head if $v;
21812181
my($code) = $head =~ /^HTTP\/\d+\.\d+\s+(\d+\s+.*?)\r?\n/s;
21822182

0 commit comments

Comments
 (0)