Skip to content

Commit e4bfad3

Browse files
committed
send necessary HTTP headers
1 parent 1e880ca commit e4bfad3

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
@@ -676,6 +676,7 @@ when the streams are large)::
676676
$client->request('POST', 'https://...', [
677677
// ...
678678
'body' => $formData->bodyToString(),
679+
'headers' => $formData->getPreparedHeaders()->toArray(),
679680
]);
680681

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

0 commit comments

Comments
 (0)