Skip to content

Commit 9000a5f

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: send necessary HTTP headers
2 parents bcdae73 + 01f4f2d commit 9000a5f

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
@@ -670,6 +670,7 @@ when the streams are large)::
670670
$client->request('POST', 'https://...', [
671671
// ...
672672
'body' => $formData->bodyToString(),
673+
'headers' => $formData->getPreparedHeaders()->toArray(),
673674
]);
674675

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

0 commit comments

Comments
 (0)