fix: return proper WebDAV auth challenge headers and text error bodies instead of JSON
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user