Skip to content

Commit d60d983

Browse files
committed
Let cURL set Content-Length by itself; fixing #2 (noted by @lightxx)
1 parent 7bd010a commit d60d983

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

proxy.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@
3333

3434

3535
// Remove ignored headers and prepare the rest for resending
36-
$ignore = ['cookie', 'host', 'x-proxy-url', 'x-proxy-cookie'];
36+
$ignore = [
37+
'cookie',
38+
'content-length',
39+
'host',
40+
'x-proxy-url',
41+
'x-proxy-cookie',
42+
];
3743
$headers = array_diff_key(array_change_key_case($headers), array_flip($ignore));
3844
if($cookie)
3945
$headers['Cookie'] = $cookie;

0 commit comments

Comments
 (0)