1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-18 05:48:15 +01:00

Merge pull request #1597 from brunoplima/brunoplima-typo

Fixing typo
This commit is contained in:
Tobias Nyholm 2016-09-22 16:23:55 +02:00 committed by GitHub
commit a0d75173c8

View File

@ -132,7 +132,7 @@ $handler = GuzzleHttp\HandlerStack::create();
$handler->push(Middleware::mapRequest(function (RequestInterface $request) {
// Notice that we have to return a request object
return $request->withHeader('X-Foo', 'Bar');
});
}));
// Inject the handler into the client
$client = new GuzzleHttp\Client(['handler' => $handler]);
```