Skip to content

Commit 01f4f2d

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: send necessary HTTP headers
2 parents 6cb1fcf + 7af2c35 commit 01f4f2d

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)