mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #32519 from nextcloud/rename-webcal-user-agent
Rename user-agent used by the Webcal Refresh Service
This commit is contained in:
commit
384efc8958
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue