Skip to content

Commit 77c7d37

Browse files
committed
minor #20046 [HttpClient] send necessary HTTP headers (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [HttpClient] send necessary HTTP headers see symfony/symfony#57742 Commits ------- e4bfad3 send necessary HTTP headers
2 parents 1e880ca + e4bfad3 commit 77c7d37

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)