Commits

Jan-Jaap Driessen committed b99e3a0

Also setup the injector for HEAD requests. We don't want the app which we
are wrapping to choke on the NotImplementedError raised by
DummyNeededResources.

Comments (0)

Files changed (2)

 1.0a4 (unreleased)
 ==================
 
-- Nothing changed yet.
-
+- Also setup the injector for HEAD requests. We don't want the app which we
+  are wrapping to choke on the NotImplementedError raised by
+  DummyNeededResources.
 
 1.0a3 (2013-08-12)
 ==================

fanstatic/injector.py

     def __call__(self, environ, start_response):
         request = webob.Request(environ)
         # We only continue if the request method is appropriate.
-        if not request.method in ['GET', 'POST']:
+        if not request.method in ['GET', 'POST', 'HEAD']:
             return self.app(environ, start_response)
 
         # Initialize a needed resources object.