fix css headers
This commit is contained in:
parent
1902bc05f4
commit
c857e51c56
1 changed files with 1 additions and 6 deletions
|
@ -156,7 +156,6 @@ class handler(BaseHTTPRequestHandler):
|
||||||
self.send_response(200)
|
self.send_response(200)
|
||||||
self.send_header('Content-type', 'text/css')
|
self.send_header('Content-type', 'text/css')
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
|
||||||
cssfile = open("default.css", "rb")
|
cssfile = open("default.css", "rb")
|
||||||
cssfile = cssfile.read()
|
cssfile = cssfile.read()
|
||||||
self.wfile.write(cssfile)
|
self.wfile.write(cssfile)
|
||||||
|
@ -203,10 +202,6 @@ class handler(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
elif "/logo" == self.path:
|
elif "/logo" == self.path:
|
||||||
|
|
||||||
self.send_response(200)
|
|
||||||
self.send_header('Content-type', 'image/png')
|
|
||||||
self.end_headers()
|
|
||||||
|
|
||||||
icon = open("favicon.png", "rb")
|
icon = open("favicon.png", "rb")
|
||||||
icon = icon.read()
|
icon = icon.read()
|
||||||
self.wfile.write(icon)
|
self.wfile.write(icon)
|
||||||
|
|
Loading…
Reference in a new issue