Set Accept header in image proxy
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 27 Nov 2016 23:02:23 +0000 (00:02 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 27 Nov 2016 23:02:23 +0000 (00:02 +0100)
wcfsetup/install/files/lib/action/ImageProxyAction.class.php

index 8ee2f175bd984b46b5ae10e27e89ba45cbee568b..c08a39735d0f6f48f6d8958b5005f6233620303d 100644 (file)
@@ -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) {