]> source.dussan.org Git - nextcloud-server.git/commitdiff
Set content type for propfind request 19578/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 21 Feb 2020 21:13:49 +0000 (22:13 +0100)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 21 Feb 2020 21:13:49 +0000 (22:13 +0100)
Without the request is sent as application/x-www-form-urlencoded; charset=UTF-8 and might be blocked by some application firewalls because content and content type do not match.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
core/js/setupchecks.js

index f9829954f16a607e0b7715206248f2660a215164..1e50644aa27f356673f55690aca8a029b121c421 100644 (file)
@@ -40,6 +40,7 @@
                                                '<d:propfind xmlns:d="DAV:">' +
                                                '<d:prop><d:resourcetype/></d:prop>' +
                                                '</d:propfind>',
+                               contentType: 'application/xml; charset=utf-8',
                                complete: afterCall,
                                allowAuthErrors: true
                        });