1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-23 17:44:02 +01:00

Fix syntax errors

This commit is contained in:
mortenhauberg 2015-10-15 08:20:49 +02:00
parent 6d6c3a68fb
commit fb449de675
2 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ function that takes the following form.
return function (callable $handler) {
return function (RequestInterface $request, array $options) use ($handler) {
return $handler($request, $options);
}
};
};
}
@ -106,7 +106,7 @@ Here's an example of adding a header to each request.
) use ($handler, $header, $value) {
$request = $request->withHeader($header, $value);
return $handler($request, $options);
}
};
};
}

View File

@ -86,7 +86,7 @@ pairs:
UriInterface $uri
) {
echo 'Redirecting! ' . $request->getUri() . ' to ' . $uri . "\n";
}
};
$res = $client->request('GET', '/redirect/3', [
'allow_redirects' => [