diff options
author | Helmut Grohne <helmut@subdivi.de> | 2007-04-20 23:46:32 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2007-04-20 23:46:32 +0200 |
commit | 529ab8f8d98ddf9f38b9c1fff8e6410dd8540b69 (patch) | |
tree | b4a3098a705f4ee86fba58babe2097ab7da62742 /wsgitools/applications.py | |
parent | dab23d4b5bd904329aa43e4056197e10f7794ca7 (diff) | |
download | wsgitools-529ab8f8d98ddf9f38b9c1fff8e6410dd8540b69.tar.gz |
added better support for HEAD
Diffstat (limited to 'wsgitools/applications.py')
-rw-r--r-- | wsgitools/applications.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsgitools/applications.py b/wsgitools/applications.py index 1e2b435..4ddf7ea 100644 --- a/wsgitools/applications.py +++ b/wsgitools/applications.py @@ -24,4 +24,6 @@ class StaticContent: def __call__(self, environ, start_response): """wsgi interface""" start_response(self.status, self.headers) + if environ["REQUEST_METHOD"].upper() == "HEAD": + return [] return self.content |