From 8689900a386fb1c767350e70dc02774fc9cc39c5 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 17 Aug 2009 20:08:20 +0200 Subject: webinterface cache control, curl fix --- module/web/bottle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/web/bottle.py') 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: -- cgit v1.2.3