Skip to content

Commit 392a417

Browse files
committed
Remove Expect header
Remove the `Expect` header which is [not handled](https://blog.pilif.me/2007/02/02/the-return-of-except-100-continue/) by many hosts (including the API gateway apparently).
1 parent f9bd83b commit 392a417

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proxy.php

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137

138138
// let the request begin
139139
$ch = curl_init($request_url);
140+
array_push($request_headers, 'Expect:'); // Many hosts don't support 100-Expect
140141
curl_setopt($ch, CURLOPT_HTTPHEADER, $request_headers); // (re-)send headers
141142
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // return response
142143
curl_setopt($ch, CURLOPT_HEADER, true); // enabled response headers

0 commit comments

Comments
 (0)