Skip to content

Commit c0a83fb

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: send necessary HTTP headers
2 parents d5c455e + 77c7d37 commit c0a83fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

http_client.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ when the streams are large)::
669669
$client->request('POST', 'https://...', [
670670
// ...
671671
'body' => $formData->bodyToString(),
672+
'headers' => $formData->getPreparedHeaders()->toArray(),
672673
]);
673674

674675
If you need to add a custom HTTP header to the upload, you can do::

0 commit comments

Comments
 (0)