{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/18020","labels_url":"https://api.github.com/repos/akka/akka/issues/18020/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/18020/comments","events_url":"https://api.github.com/repos/akka/akka/issues/18020/events","html_url":"https://github.com/akka/akka/issues/18020","id":95538789,"number":18020,"title":"akka-http request parsing parses HEAD as GET","user":{"login":"mhamrah","id":91162,"avatar_url":"https://avatars.githubusercontent.com/u/91162?v=3","gravatar_id":"","url":"https://api.github.com/users/mhamrah","html_url":"https://github.com/mhamrah","followers_url":"https://api.github.com/users/mhamrah/followers","following_url":"https://api.github.com/users/mhamrah/following{/other_user}","gists_url":"https://api.github.com/users/mhamrah/gists{/gist_id}","starred_url":"https://api.github.com/users/mhamrah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhamrah/subscriptions","organizations_url":"https://api.github.com/users/mhamrah/orgs","repos_url":"https://api.github.com/users/mhamrah/repos","events_url":"https://api.github.com/users/mhamrah/events{/privacy}","received_events_url":"https://api.github.com/users/mhamrah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/0%20-%20new","name":"0 - new","color":"ffffff"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http","name":"t:http","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-16T21:52:16Z","updated_at":"2015-07-30T16:02:09Z","closed_at":null,"body":"If I issue a:\r\n\r\n```\r\ncurl -XHEAD -v http://localhost:8080\r\n```\r\n\r\nto an akka-http app, the routing logic sees this as a GET request, not a HEAD request. "},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/126382239","html_url":"https://github.com/akka/akka/issues/18020#issuecomment-126382239","issue_url":"https://api.github.com/repos/akka/akka/issues/18020","id":126382239,"user":{"login":"magro","id":64285,"avatar_url":"https://avatars.githubusercontent.com/u/64285?v=3","gravatar_id":"","url":"https://api.github.com/users/magro","html_url":"https://github.com/magro","followers_url":"https://api.github.com/users/magro/followers","following_url":"https://api.github.com/users/magro/following{/other_user}","gists_url":"https://api.github.com/users/magro/gists{/gist_id}","starred_url":"https://api.github.com/users/magro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magro/subscriptions","organizations_url":"https://api.github.com/users/magro/orgs","repos_url":"https://api.github.com/users/magro/repos","events_url":"https://api.github.com/users/magro/events{/privacy}","received_events_url":"https://api.github.com/users/magro/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T16:02:09Z","updated_at":"2015-07-30T16:02:09Z","body":"@jrudolph What was the reasoning behind the decision to set request.method to GET for transparent HEAD requests?\r\n\r\nAs a user using a monitoring tool like e.g. [kamon](https://github.com/kamon-io/Kamon) that reports requests (based on request method and path), I'd expect to see different traces for HEAD and GET requests. If there are lots of HEAD requests while I have no HEAD directive defined and GETs are expensive, I could decide to add an explicit mapping/directive for HEAD.\r\nThat's the use case where I'm coming from, because we had seen unexpected behaviour / monitoring traces for transparent HEAD requests in play. This is described in kamon-io/Kamon#237."}}