summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-26 16:21:29 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-26 16:21:29 +0200
commitc06d8b07fe675d3ffefda196956b2407171bc921 (patch)
tree1ddeff0c387be99b8e8a943be357de4e5088dafa
parentlittle fixes (diff)
downloadpyload-c06d8b07fe675d3ffefda196956b2407171bc921.tar.xz
favicon fix
-rw-r--r--config2
-rw-r--r--module/web/WebServer.py7
2 files changed, 7 insertions, 2 deletions
diff --git a/config b/config
index d5ec33490..43579fe8e 100644
--- a/config
+++ b/config
@@ -3,7 +3,7 @@ port = 7272
password = pwhere
[webinterface]
-activated = False
+activated = True
port = 8080
username = User
password = webpw
diff --git a/module/web/WebServer.py b/module/web/WebServer.py
index 0627132c8..584ed564c 100644
--- a/module/web/WebServer.py
+++ b/module/web/WebServer.py
@@ -218,7 +218,12 @@ def pause():
@route('/favicon.ico')
def favicon():
- redirect('/static/favicon.ico')
+
+ if request.HEADER("HTTP_IF_MODIFIED_SINCE") == TIME: abort(304, "Not Modified")
+
+ response.header['Last-Modified'] = TIME
+
+ send_file('favicon.ico', root=(PATH + 'static/'))
@route('static/:section/:filename')
def static_folder(section, filename):