summaryrefslogtreecommitdiff
path: root/python/gras/stats/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/gras/stats/__init__.py')
-rw-r--r--python/gras/stats/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/gras/stats/__init__.py b/python/gras/stats/__init__.py
index 6f68d1f..330abd4 100644
--- a/python/gras/stats/__init__.py
+++ b/python/gras/stats/__init__.py
@@ -27,7 +27,9 @@ class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
target = os.path.join(__path__, path)
if os.path.exists(target):
s.send_response(200)
- s.send_header("Content-type", "text/html")
+ if target.endswith('.js'): s.send_header("Content-type", "text/javascript")
+ elif target.endswith('.css'): s.send_header("Content-type", "text/css")
+ else: s.send_header("Content-type", "text")
s.end_headers()
s.wfile.write(open(target).read())
else: