Skip to content

Commit

Permalink
Merge pull request #32519 from nextcloud/rename-webcal-user-agent
Browse files Browse the repository at this point in the history
Rename user-agent used by the Webcal Refresh Service
  • Loading branch information
ChristophWurst authored May 23, 2022
2 parents 74d8165 + 424fc1b commit 384efc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private function queryWebcalFeed(array $subscription, array &$mutations) {
$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) {
Expand Down

0 comments on commit 384efc8

Please sign in to comment.