From 8c7bfa6d07ef72109c3232726ee2086f995f3994 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 28 Nov 2016 00:02:23 +0100 Subject: [PATCH] Set Accept header in image proxy --- wcfsetup/install/files/lib/action/ImageProxyAction.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/action/ImageProxyAction.class.php b/wcfsetup/install/files/lib/action/ImageProxyAction.class.php index 8ee2f175bd..c08a39735d 100644 --- a/wcfsetup/install/files/lib/action/ImageProxyAction.class.php +++ b/wcfsetup/install/files/lib/action/ImageProxyAction.class.php @@ -68,6 +68,7 @@ class ImageProxyAction extends AbstractAction { 'maxLength' => 10 * (1 << 20) // download at most 10 MiB ]); $request->addHeader('Via', '1.1 wsc'); + $request->addHeader('Accept', 'image/*'); $request->execute(); } catch (\Exception $e) { -- 2.20.1