Skip to content

Commit 940fee5

Browse files
authored
Update http_client.rst
notice about passing accept-encoding variable manually
1 parent a854341 commit 940fee5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

http_client.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,9 @@ To disable HTTP compression, send an ``Accept-Encoding: identity`` HTTP header.
10511051
Chunked transfer encoding is enabled automatically if both your PHP runtime and
10521052
the remote server supports it.
10531053

1054+
.. caution::
1055+
Symfony automatically adds the `Accept-Encoding: gzip` HTTP header if certain requirements are met. However, be aware that if you manually set `Accept-Encoding` to `gzip`, you will need to handle the decompression yourself.
1056+
10541057
HTTP/2 Support
10551058
~~~~~~~~~~~~~~
10561059

0 commit comments

Comments
 (0)