Skip to content

Commit 7af2c35

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: send necessary HTTP headers
2 parents 37e5229 + c0a83fb commit 7af2c35

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
@@ -662,6 +662,7 @@ when the streams are large)::
662662
$client->request('POST', 'https://...', [
663663
// ...
664664
'body' => $formData->bodyToString(),
665+
'headers' => $formData->getPreparedHeaders()->toArray(),
665666
]);
666667

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

0 commit comments

Comments
 (0)