fix: return proper WebDAV auth challenge headers and text error bodies instead of JSON

This commit is contained in:
2025-11-14 00:59:01 +00:00
parent a2b5692811
commit 6da46eaffb
2 changed files with 17 additions and 2 deletions
+2
View File
@@ -76,6 +76,8 @@ async def test_webdav_propfind_root_unauthorized():
)
assert response.status_code == status.HTTP_401_UNAUTHORIZED
assert "WWW-Authenticate" in response.headers
assert 'Basic realm="MyWebdav WebDAV"' in response.headers["WWW-Authenticate"]
@pytest.mark.asyncio