We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d64b07b commit 8832bd6Copy full SHA for 8832bd6
1 file changed
src/Api.php
@@ -84,14 +84,14 @@ protected function request(
84
$this->eventDispatcher->dispatch(new PostRequestEvent($request, $response));
85
86
$contents = $response->getBody()->getContents();
87
-
88
return $this->eventDispatcher->dispatch(new ResponseContentsEvent($contents))->getContents();
89
}
90
91
private function configurePlugins(): void
92
{
93
- // help servers understand the content
+ // https://docs.php-http.org/en/latest/plugins/content-type.html
94
$this->clientBuilder->addPlugin(new ContentTypePlugin(), 40);
+ // https://docs.php-http.org/en/latest/plugins/content-length.html
95
$this->clientBuilder->addPlugin(new ContentLengthPlugin(), 32);
96
97
// https://docs.php-http.org/en/latest/message/authentication.html
0 commit comments