From: Tim Düsterhus Date: Sun, 27 Nov 2016 23:02:23 +0000 (+0100) Subject: Set Accept header in image proxy X-Git-Tag: 3.0.0_RC_1~115 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8c7bfa6d07ef72109c3232726ee2086f995f3994;p=GitHub%2FWoltLab%2FWCF.git Set Accept header in image proxy --- 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) {