Remove body cleanup for HEAD HTTP requests
jodosha opened this issue · 1 comments
jodosha commented
Hanami::Router
1.x empties the body if the HTTP request is using HEAD verb.
While this is formally correct, and makes the router "full featured", we have the same control in hanami-controller
and hanami
. This makes a total of three times for each request. The idea is to use Rack::Head
from rack
gem instead of these custom controls.
Developers who are using hanami-router
as standalone router, can mount that middleware.
Developers who are using hanami
don't need to take any action, because we'll mount that middleware at the project level.
This change MUST go to unstable
branch.