mirror of https://gitlab.com/bashrc2/epicyon
Make permissive headers more similar to mastodon instance
parent
26ad5cbd0b
commit
3c56702e1e
|
@ -686,7 +686,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.send_header('Content-type', fileFormat)
|
self.send_header('Content-type', fileFormat)
|
||||||
if length > -1:
|
if length > -1:
|
||||||
self.send_header('Content-Length', str(length))
|
self.send_header('Content-Length', str(length))
|
||||||
if cookie and not permissive:
|
if permissive:
|
||||||
|
return
|
||||||
|
if cookie:
|
||||||
cookieStr = cookie
|
cookieStr = cookie
|
||||||
if 'HttpOnly;' not in cookieStr:
|
if 'HttpOnly;' not in cookieStr:
|
||||||
if self.server.httpPrefix == 'https':
|
if self.server.httpPrefix == 'https':
|
||||||
|
|
Loading…
Reference in New Issue