The webapp framework is fairly strict about http head requests. I'm
not a web framework expert, but I think most web frameworks will
implement head in terms of http GET if an explicit HEAD handler is not
implemented. But webapp seems to require that head is explicit
implemented in your handler or else it will return a 405 error. I
would like HEAD to work on my site, but I don't really want to go and
add special HEAD handlers to each of my controllers.

This brings up two questions:

1. Would it make sense to modify the webapp framework so that HEAD
requests fall back on GET if HEAD isn't implemented?

2. Related, in my app I've just added this default controller:

class HEADHandler(webapp.RequestHandler):
        def head(self, *args):
                return self.get(*args)

And I make all my other controllers inherit from it. This seems to
work as desired, my controllers now correctly respond to HEAD
requests. Is this an OK implementation, or can it cause problems that
I'm not thinking about?

Thanks,
Jesse

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to