{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/7733","repository_url":"https://api.github.com/repos/playframework/playframework","labels_url":"https://api.github.com/repos/playframework/playframework/issues/7733/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/7733/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/7733/events","html_url":"https://github.com/playframework/playframework/issues/7733","id":250503842,"number":7733,"title":"Akka HTTP backend strips quotes out of link headers","user":{"login":"jroper","id":105833,"avatar_url":"https://avatars0.githubusercontent.com/u/105833?v=4","gravatar_id":"","url":"https://api.github.com/users/jroper","html_url":"https://github.com/jroper","followers_url":"https://api.github.com/users/jroper/followers","following_url":"https://api.github.com/users/jroper/following{/other_user}","gists_url":"https://api.github.com/users/jroper/gists{/gist_id}","starred_url":"https://api.github.com/users/jroper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jroper/subscriptions","organizations_url":"https://api.github.com/users/jroper/orgs","repos_url":"https://api.github.com/users/jroper/repos","events_url":"https://api.github.com/users/jroper/events{/privacy}","received_events_url":"https://api.github.com/users/jroper/received_events","type":"User","site_admin":false},"labels":[{"id":33226908,"url":"https://api.github.com/repos/playframework/playframework/labels/bug","name":"bug","color":"e10c02","default":true},{"id":672857002,"url":"https://api.github.com/repos/playframework/playframework/labels/topic:upstream","name":"topic:upstream","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-16T03:51:39Z","updated_at":"2017-10-18T16:10:43Z","closed_at":null,"author_association":"OWNER","body":"I'm not sure if this is a bug or not, but it is surprising behaviour.  If I do the following:\r\n\r\n```scala\r\nOk.withHeaders(\"Link\" -> \"\"\"<http://example.com/some/url>; rel=\"next\"\"\"\")\r\n```\r\n\r\nThe double quotes from around the `next` get stripped before it reaches the client, which receives the following header:\r\n\r\n```\r\nLink: <http://example.com/some/url>; rel=next\r\n```\r\n\r\nTechnically, this is compliant with [RFC-5988](https://tools.ietf.org/html/rfc5988), but it's odd that the server isn't sending what I'm telling it to send. If I have a non compliant client (which I do, it expects the quotes), it makes it impossible for me to send a link header that the client can parse. Fortunately in this case I control the client, but that might not always be the case."},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/337643707","html_url":"https://github.com/playframework/playframework/issues/7733#issuecomment-337643707","issue_url":"https://api.github.com/repos/playframework/playframework/issues/7733","id":337643707,"user":{"login":"gavares","id":46012,"avatar_url":"https://avatars0.githubusercontent.com/u/46012?v=4","gravatar_id":"","url":"https://api.github.com/users/gavares","html_url":"https://github.com/gavares","followers_url":"https://api.github.com/users/gavares/followers","following_url":"https://api.github.com/users/gavares/following{/other_user}","gists_url":"https://api.github.com/users/gavares/gists{/gist_id}","starred_url":"https://api.github.com/users/gavares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavares/subscriptions","organizations_url":"https://api.github.com/users/gavares/orgs","repos_url":"https://api.github.com/users/gavares/repos","events_url":"https://api.github.com/users/gavares/events{/privacy}","received_events_url":"https://api.github.com/users/gavares/received_events","type":"User","site_admin":false},"created_at":"2017-10-18T16:10:43Z","updated_at":"2017-10-18T16:10:43Z","author_association":"CONTRIBUTOR","body":"We're also suffering from this problem as our Bearer headers have `...,scope=\"blah.io\",service=...` converted to `...,scope=blah.io,service=...`.\r\n\r\nOne additional bit of info, when one of the fiels is empty, the quotes are left in place. So `...,service=\"\"` is left unchanged and only fields with values in them seem to have the quotes stripped."}}
{"actor":{"display_login":"gavares"}}