postrank-labs/goliath — pull request #93 by adamlwatson (2011-10-13 21:08:37+00:00)
Title: Removing automatic inclusion of HEAD mapping with GET mappings in api routes.

This pull request is in response to a conversation Ilya and I had today on the goliath list, regarding the discrepant responses received when implementing request method validation via middleware versus directly with http_router. (https://groups.google.com/group/goliath-io/browse_thread/thread/d43e795eb1583c8e)

Unless there is a good reason to keep the current behavior, this patch changes Goliath's mapping of routes so that it no longer implicitly allows HEAD requests to an api endpoint when GET is explicitly mapped.

Cheers,
Adam

------
Commit note:
Removing automatic inclusion of HEAD mapping with GET mappings in api routes. These methods should be explicitly mapped instead of implicitly glommed and allowed.