summaryrefslogtreecommitdiff
path: root/wsgitools/applications.py
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools/applications.py')
-rw-r--r--wsgitools/applications.py2
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