do not follow redirects

This commit is contained in:
Marcel Pociot
2021-06-14 15:25:58 +02:00
parent 6ffd5274b3
commit 95098c180d

View File

@@ -86,7 +86,7 @@ class HttpClient
protected function sendRequestToApplication(RequestInterface $request, $proxyConnection = null) protected function sendRequestToApplication(RequestInterface $request, $proxyConnection = null)
{ {
(new Browser($this->loop, $this->createConnector())) (new Browser($this->loop, $this->createConnector()))
->withFollowRedirects(true) ->withFollowRedirects(false)
->withRejectErrorResponse(false) ->withRejectErrorResponse(false)
->requestStreaming( ->requestStreaming(
$request->getMethod(), $request->getMethod(),