mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-05 04:02:21 +00:00
Set content type
This commit is contained in:
1 parent
c608bd443b
commit
c08dd907d2
1 file changed
+2
@@ -531,6 +531,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
redirect)
|
||||
|
||||
if not httpRedirect:
|
||||
print('Redirect from existing headers: ' + str(self.headers))
|
||||
self.headers = []
|
||||
if cookie:
|
||||
if not cookie.startswith('SET:'):
|
||||
@@ -542,6 +543,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
self.headers['Location'] = redirect
|
||||
self.headers['Host'] = callingDomain
|
||||
self.headers['InstanceID'] = self.server.instanceId
|
||||
self.headers['Content-type'] = 'text/html; charset=utf-8'
|
||||
self.headers['Content-Length'] = '0'
|
||||
self.headers['X-Robots-Tag'] = 'noindex'
|
||||
self.do_GET()
|
||||
|
||||
Reference in new issue
Block a user