From 5c4e78061ff2ead019005ee6b56d31b7e35f3d7f Mon Sep 17 00:00:00 2001 From: wkania Date: Fri, 19 Feb 2021 18:42:57 +0100 Subject: [PATCH] Fix invalid file --- http_client.rst | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/http_client.rst b/http_client.rst index 185e4a972cd..f80b2bc96ba 100644 --- a/http_client.rst +++ b/http_client.rst @@ -559,15 +559,18 @@ Use the ``headers`` option to define the default headers added to all requests: You can also set new headers or override the default ones for specific requests: -.. code-block:: php - // this header is only included in this request and overrides the value - // of the same header if defined globally by the HTTP client - $response = $client->request('POST', 'https://...', [ - 'headers' => [ - 'Content-Type' => 'text/plain', - ], - ]); +.. configuration-block:: + + .. code-block:: php + + // this header is only included in this request and overrides the value + // of the same header if defined globally by the HTTP client + $response = $client->request('POST', 'https://...', [ + 'headers' => [ + 'Content-Type' => 'text/plain', + ], + ]); Uploading Data ~~~~~~~~~~~~~~