Add 'Image Proxy' comment to Image Proxy's user-agent
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 5 Mar 2021 12:56:46 +0000 (13:56 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 5 Mar 2021 12:56:46 +0000 (13:56 +0100)
wcfsetup/install/files/lib/action/ImageProxyAction.class.php

index b890429e0976c9d5cac34eb17f050ec143d20b2f..6a665bad97fb35e1bf4da5ce769ff16173a386c1 100644 (file)
@@ -65,6 +65,9 @@ class ImageProxyAction extends AbstractAction
         return HttpFactory::makeClient([
             RequestOptions::TIMEOUT => 10,
             RequestOptions::STREAM => true,
+            RequestOptions::HEADERS => [
+                'user-agent' => HttpFactory::getDefaultUserAgent("Image Proxy"),
+            ],
         ]);
     }