{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/17057","labels_url":"https://api.github.com/repos/akka/akka/issues/17057/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/17057/comments","events_url":"https://api.github.com/repos/akka/akka/issues/17057/events","html_url":"https://github.com/akka/akka/issues/17057","id":63547541,"number":17057,"title":"Akka HTTP client sends absolute URI in Request-Line","user":{"login":"RichardBradley","id":1265780,"avatar_url":"https://avatars.githubusercontent.com/u/1265780?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardBradley","html_url":"https://github.com/RichardBradley","followers_url":"https://api.github.com/users/RichardBradley/followers","following_url":"https://api.github.com/users/RichardBradley/following{/other_user}","gists_url":"https://api.github.com/users/RichardBradley/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardBradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardBradley/subscriptions","organizations_url":"https://api.github.com/users/RichardBradley/orgs","repos_url":"https://api.github.com/users/RichardBradley/repos","events_url":"https://api.github.com/users/RichardBradley/events{/privacy}","received_events_url":"https://api.github.com/users/RichardBradley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/t:http","name":"t:http","color":"ededed"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:client","name":"t:http:client","color":"ededed"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:core","name":"t:http:core","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-22T16:03:55Z","updated_at":"2015-03-23T12:20:26Z","closed_at":null,"body":"The Akka HTTP client generates Request-Lines containing an absolute URI, rather than a relative URI as specified by [RFC 7230 sec 5.3.1](https://tools.ietf.org/html/rfc7230#section-5.3):\r\n\r\n> When making a request directly to an origin server, other than a\r\n   CONNECT or server-wide OPTIONS request (as detailed below), a client\r\n   MUST send only the absolute path and query components of the target\r\n   URI as the request-target.\r\n\r\nSome servers are rejecting requests from my Akka 1.0-M4 app, because it is sending requests with an absolute Request-Line like:\r\n\r\n```\r\nPUT http://172.22.145.52:8080/v1/AUTH_1d5faf75c6ec4562ac5bae98d7ea7335/BOSLFuncSpec-c1e6c5dc-1d0e-4df8-bf9a-1e268c343033 HTTP/1.1\r\n```\r\n\r\n(I know that the server is in violation of section 5.3.2 \"a server MUST accept the absolute-form in requests, even though HTTP/1.1 clients will only send them in requests to proxies.\", but I can't change that server.)\r\n"},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/84969859","html_url":"https://github.com/akka/akka/issues/17057#issuecomment-84969859","issue_url":"https://api.github.com/repos/akka/akka/issues/17057","id":84969859,"user":{"login":"jrudolph","id":9868,"avatar_url":"https://avatars.githubusercontent.com/u/9868?v=3","gravatar_id":"","url":"https://api.github.com/users/jrudolph","html_url":"https://github.com/jrudolph","followers_url":"https://api.github.com/users/jrudolph/followers","following_url":"https://api.github.com/users/jrudolph/following{/other_user}","gists_url":"https://api.github.com/users/jrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/jrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrudolph/subscriptions","organizations_url":"https://api.github.com/users/jrudolph/orgs","repos_url":"https://api.github.com/users/jrudolph/repos","events_url":"https://api.github.com/users/jrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/jrudolph/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T12:20:26Z","updated_at":"2015-03-23T12:20:26Z","body":"Interesting, indeed. (I had the spray issue on my list of tickets to review because something seemed amiss but didn't get to it yet.)"}}