]> source.dussan.org Git - nextcloud-server.git/commitdiff
Rename user-agent used by the Webcal Refresh Service 32519/head
authorThomas Citharel <tcit@tcit.fr>
Fri, 20 May 2022 14:23:40 +0000 (16:23 +0200)
committerThomas Citharel <tcit@tcit.fr>
Fri, 20 May 2022 14:23:40 +0000 (16:23 +0200)
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>
apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php

index 49f667353455e8199fd0c3c80e20d29d6b266f09..0dbe7398f527a96bc0628c69129fb905b7e92236 100644 (file)
@@ -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) {