From 08551773a9e0fea601e746bcd0f3e43e7a09f68c Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Fri, 5 Mar 2021 11:12:35 +0100 Subject: [PATCH] Use own ua for url unfurling --- .../files/lib/system/message/unfurl/UnfurlResponse.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php b/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php index abd3b70fae..09d8a3f1f0 100644 --- a/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php +++ b/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php @@ -337,6 +337,9 @@ final class UnfurlResponse self::$httpClient = HttpFactory::makeClient([ RequestOptions::TIMEOUT => 10, RequestOptions::STREAM => true, + RequestOptions::HEADERS => [ + 'user-agent' => HttpFactory::getDefaultUserAgent("UrlUnfurling"), + ], ]); } -- 2.20.1