]> source.dussan.org Git - nextcloud-server.git/commitdiff
Header must contain a colon 27456/head
authoracsfer <carlos@reendex.com>
Wed, 9 Jun 2021 14:20:55 +0000 (16:20 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 10 Jun 2021 08:23:05 +0000 (08:23 +0000)
apps/dav/lib/Connector/PublicAuth.php

index 29f8295a7a5ec2eb232377b2273f9c9450493d07..450217722937a98fa52c3160dc37655b19364b54 100644 (file)
@@ -111,7 +111,7 @@ class PublicAuth extends AbstractBasic {
                                        if (in_array('XMLHttpRequest', explode(',', $this->request->getHeader('X-Requested-With')))) {
                                                // do not re-authenticate over ajax, use dummy auth name to prevent browser popup
                                                http_response_code(401);
-                                               header('WWW-Authenticate','DummyBasic realm="' . $this->realm . '"');
+                                               header('WWW-AuthenticateDummyBasic realm="' . $this->realm . '"');
                                                throw new \Sabre\DAV\Exception\NotAuthenticated('Cannot authenticate over ajax calls');
                                        }
                                        return false;