summaryrefslogtreecommitdiffstats
path: root/module/web/bottle.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-17 20:08:20 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-17 20:08:20 +0200
commit8689900a386fb1c767350e70dc02774fc9cc39c5 (patch)
tree40f1cf8aff02c3bb43aa21e2a53cdd4f539d8173 /module/web/bottle.py
parentnew config options, webinterface test (diff)
downloadpyload-8689900a386fb1c767350e70dc02774fc9cc39c5.tar.xz
webinterface cache control, curl fix
Diffstat (limited to 'module/web/bottle.py')
-rw-r--r--module/web/bottle.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/web/bottle.py b/module/web/bottle.py
index 8335f112b..8d4570bb7 100644
--- a/module/web/bottle.py
+++ b/module/web/bottle.py
@@ -342,6 +342,9 @@ class Request(threading.local):
self._COOKIES[cookie.key] = cookie.value
return self._COOKIES
+ def HEADER(self, header):
+ """Returns HTTP header"""
+ return self._environ.get(header, '')
class Response(threading.local):
""" Represents a single response using thread-local namespace. """
@@ -548,7 +551,7 @@ def run(app=None, server=WSGIRefServer, host='127.0.0.1', port=8080, **kargs):
print 'Listening on http://%s:%d/' % (server.host, server.port)
print 'Use Ctrl-C to quit.'
print
-
+pri
try:
server.run(app)
except KeyboardInterrupt: