1. fanstatic
  2. Untitled project
  3. fanstatic

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.

  • Participants
  • Parent commits 8ab3899
  • Branches default

Comments (0)

Files changed (2)

File CHANGES.txt

View file
 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)
 ==================

File fanstatic/injector.py

View file
     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.