mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 00:52:16 -06:00
support netscape 3.0
This commit is contained in:
parent
5d8be84d18
commit
e7dc7c9997
|
@ -69,6 +69,9 @@ class HttpCli(object):
|
|||
continue
|
||||
|
||||
v = unescape_cookie(v)
|
||||
if v == "x":
|
||||
break
|
||||
|
||||
if not v in self.auth.iuser:
|
||||
msg = u'bad_cpwd "{}"'.format(v)
|
||||
nuke = u"Set-Cookie: cppwd=x; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"
|
||||
|
@ -83,12 +86,16 @@ class HttpCli(object):
|
|||
print(self.rvol)
|
||||
print(self.wvol)
|
||||
|
||||
if mode == "GET":
|
||||
self.handle_get()
|
||||
elif mode == "POST":
|
||||
self.handle_post()
|
||||
else:
|
||||
self.loud_reply(u'invalid HTTP mode "{0}"'.format(mode))
|
||||
try:
|
||||
if mode == "GET":
|
||||
self.handle_get()
|
||||
elif mode == "POST":
|
||||
self.handle_post()
|
||||
else:
|
||||
self.loud_reply(u'invalid HTTP mode "{0}"'.format(mode))
|
||||
|
||||
except Pebkac as ex:
|
||||
self.loud_reply(str(ex))
|
||||
|
||||
def panic(self, msg):
|
||||
self.log("client disconnected ({0})".format(msg).upper())
|
||||
|
|
|
@ -60,7 +60,7 @@ class MultipartParser(object):
|
|||
if m.group(1).lower() == "multipart/mixed":
|
||||
# rfc-7578 overrides rfc-2388 so this is not-impl
|
||||
# (opera >=9 <11.10 is the only thing i've ever seen use it)
|
||||
raise Exception(
|
||||
raise Pebkac(
|
||||
"you can't use that browser to upload multiple files at once"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue