fix css headers

This commit is contained in:
Madiator2011 2024-04-29 18:17:26 +02:00
parent 1902bc05f4
commit c857e51c56

View file

@ -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)
@ -172,7 +171,7 @@ class handler(BaseHTTPRequestHandler):
elif self.path in ["/faq", "/faq?"]: elif self.path in ["/faq", "/faq?"]:
# The font file # The font file
faqfile = open("faq.html") faqfile = open("faq.html")
faqfile = faqfile.read() faqfile = faqfile.read()
faqfile = render.search_widget(faqfile, ADDRESS) faqfile = render.search_widget(faqfile, ADDRESS)
@ -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)