Stream the response in ImageProxyAction
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 16 Feb 2021 08:23:58 +0000 (09:23 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 16 Feb 2021 08:24:41 +0000 (09:24 +0100)
see 5fc80baf9a348a63baaaa6fa150b1732adfc9f3c

wcfsetup/install/files/lib/action/ImageProxyAction.class.php

index a6d37519e6bdd882c5a98f6b57e2b96cd00a2587..084c6ce3180fb41a83915a66fdf42784177ac6ad 100644 (file)
@@ -96,6 +96,7 @@ class ImageProxyAction extends AbstractAction {
                                        try {
                                                $client = HttpFactory::makeClient([
                                                        'timeout' => 10,
+                                                       'stream' => true,
                                                ]);
                                                $request = new Request('GET', $url, [
                                                        'via' => '1.1 wsc',