From e34ed489a75609dc0076e0437ac6f8d65d4c5ac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BF=8A=E9=81=A5?= Date: Tue, 27 Dec 2016 17:45:24 +0800 Subject: [PATCH] Update request-options.rst $request->getHeader('Content-Type'); is array; --- docs/request-options.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/request-options.rst b/docs/request-options.rst index 7de6e5a8..eeb363b9 100644 --- a/docs/request-options.rst +++ b/docs/request-options.rst @@ -557,7 +557,7 @@ over the wire. $clientHandler = $client->getConfig('handler'); // Create a middleware that echoes parts of the request. $tapMiddleware = Middleware::tap(function ($request) { - echo $request->getHeader('Content-Type'); + echo $request->getHeaderLine('Content-Type'); // application/json echo $request->getBody(); // {"foo":"bar"}