From 5fc80baf9a348a63baaaa6fa150b1732adfc9f3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 21 Jan 2021 09:33:22 +0100 Subject: [PATCH] Set 'stream' to `true` for Guzzle in `HTTPRequest` This is required to properly support the 'maxLength' option on endless streams (such as a web radio). Without setting 'stream' to `true`, Guzzle attempts to download the entire response body before returning from `->send()`. --- wcfsetup/install/files/lib/util/HTTPRequest.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/util/HTTPRequest.class.php b/wcfsetup/install/files/lib/util/HTTPRequest.class.php index 2867920d99..11aa2c611e 100644 --- a/wcfsetup/install/files/lib/util/HTTPRequest.class.php +++ b/wcfsetup/install/files/lib/util/HTTPRequest.class.php @@ -173,6 +173,7 @@ final class HTTPRequest { 'track_redirects' => true, 'on_redirect' => $redirectHandler, ], + 'stream' => true, ]; if (isset($this->options['auth'])) { $options['auth'] = [ -- 2.20.1