]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - qwebirc/root.py
Add icon mime-type.
[irc/quakenet/qwebirc.git] / qwebirc / root.py
index 09af829756f41d8b08be06d47555ed9b23e4f4a6..41502a358d3e9a9996b56383ca42457bfca65ca0 100644 (file)
@@ -1,11 +1,11 @@
 from ajaxengine import AJAXEngine
-
+import mimetypes
 from twisted.web import resource, server, static
 
 class RootResource(resource.Resource):
   def getChild(self, name, request):
     if name == "":
-      name = "swmui.html"
+      name = "qui.html"
     return self.primaryChild.getChild(name, request)
 
 class RootSite(server.Site):
@@ -15,3 +15,6 @@ class RootSite(server.Site):
 
     root.primaryChild = static.File(path)
     root.putChild("e", AJAXEngine("/e"))
+
+mimetypes.types_map[".ico"] = "image/vnd.microsoft.icon"
+