diff options
author | Thomas Citharel <tcit@tcit.fr> | 2022-05-20 16:23:40 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2022-05-20 16:23:40 +0200 |
commit | 424fc1b736d1aa21dd1c9c64149b05be93c77cad (patch) | |
tree | 12b6ad9bdfa06bc35ec6dbc3cc068906aaa0f595 /apps | |
parent | 6fdeb9b41735e04821cb973a23e0a36a20a8d268 (diff) | |
download | nextcloud-server-424fc1b736d1aa21dd1c9c64149b05be93c77cad.tar.gz nextcloud-server-424fc1b736d1aa21dd1c9c64149b05be93c77cad.zip |
Rename user-agent used by the Webcal Refresh Service
Some services don't like the "crawler" inside the previous user-agent.
Closes https://github.com/nextcloud/calendar/issues/4232
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php b/apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php index 49f66735345..0dbe7398f52 100644 --- a/apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php +++ b/apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php @@ -192,7 +192,7 @@ class RefreshWebcalService { $handlerStack->push(Middleware::mapRequest(function (RequestInterface $request) { return $request ->withHeader('Accept', 'text/calendar, application/calendar+json, application/calendar+xml') - ->withHeader('User-Agent', 'Nextcloud Webcal Crawler'); + ->withHeader('User-Agent', 'Nextcloud Webcal Service'); })); $handlerStack->push(Middleware::mapResponse(function (ResponseInterface $response) use (&$didBreak301Chain, &$latestLocation) { if (!$didBreak301Chain) { |