vlucas / bulletphp

A resource-oriented micro PHP framework
http://bulletphp.com
BSD 3-Clause "New" or "Revised" License
418 stars 50 forks source link

HTTP 405 (Method Not Allowed) should include an Allow header #45

Closed ellotheth closed 10 years ago

ellotheth commented 10 years ago

Tiny change: Based on the spec, HTTP 405 responses should include an Allow header containing all the allowed methods for that path. Something similar is already implemented for OPTIONS requests, so I applied the same concept to 405 responses.

vlucas commented 10 years ago

Great catch. :+1:

ellotheth commented 10 years ago

Wahoo!