mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
davfs2 requires realm
This commit is contained in:
parent
aa32f30202
commit
01e2681a07
|
@ -241,7 +241,7 @@ class HttpCli(object):
|
||||||
self.http_ver = "HTTP/1.1"
|
self.http_ver = "HTTP/1.1"
|
||||||
# self.log("pebkac at httpcli.run #1: " + repr(ex))
|
# self.log("pebkac at httpcli.run #1: " + repr(ex))
|
||||||
self.keepalive = False
|
self.keepalive = False
|
||||||
h = {"WWW-Authenticate": "Basic"} if ex.code == 401 else {}
|
h = {"WWW-Authenticate": 'Basic realm="a"'} if ex.code == 401 else {}
|
||||||
try:
|
try:
|
||||||
self.loud_reply(unicode(ex), status=ex.code, headers=h, volsan=True)
|
self.loud_reply(unicode(ex), status=ex.code, headers=h, volsan=True)
|
||||||
return self.keepalive
|
return self.keepalive
|
||||||
|
@ -448,7 +448,7 @@ class HttpCli(object):
|
||||||
msg += "hint: important info in the server log\r\n"
|
msg += "hint: important info in the server log\r\n"
|
||||||
|
|
||||||
zb = b"<pre>" + html_escape(msg).encode("utf-8", "replace")
|
zb = b"<pre>" + html_escape(msg).encode("utf-8", "replace")
|
||||||
h = {"WWW-Authenticate": "Basic"} if pex.code == 401 else {}
|
h = {"WWW-Authenticate": 'Basic realm="a"'} if pex.code == 401 else {}
|
||||||
self.reply(zb, status=pex.code, headers=h, volsan=True)
|
self.reply(zb, status=pex.code, headers=h, volsan=True)
|
||||||
return self.keepalive
|
return self.keepalive
|
||||||
except Pebkac:
|
except Pebkac:
|
||||||
|
|
Loading…
Reference in a new issue