{"action":"closed","issue":{"url":"https://api.github.com/repos/akka/akka/issues/19034","labels_url":"https://api.github.com/repos/akka/akka/issues/19034/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/19034/comments","events_url":"https://api.github.com/repos/akka/akka/issues/19034/events","html_url":"https://github.com/akka/akka/issues/19034","id":119190320,"number":19034,"title":"http: content negotiation doesn't properly handle certain edge cases","user":{"login":"sirthias","id":135347,"avatar_url":"https://avatars.githubusercontent.com/u/135347?v=3","gravatar_id":"","url":"https://api.github.com/users/sirthias","html_url":"https://github.com/sirthias","followers_url":"https://api.github.com/users/sirthias/followers","following_url":"https://api.github.com/users/sirthias/following{/other_user}","gists_url":"https://api.github.com/users/sirthias/gists{/gist_id}","starred_url":"https://api.github.com/users/sirthias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirthias/subscriptions","organizations_url":"https://api.github.com/users/sirthias/orgs","repos_url":"https://api.github.com/users/sirthias/repos","events_url":"https://api.github.com/users/sirthias/events{/privacy}","received_events_url":"https://api.github.com/users/sirthias/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http","name":"t:http","color":"CCCCCC"},{"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"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:next","name":"t:http:next","color":"fef2c0"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:server","name":"t:http:server","color":"ededed"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:server:dsl","name":"t:http:server:dsl","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"sirthias","id":135347,"avatar_url":"https://avatars.githubusercontent.com/u/135347?v=3","gravatar_id":"","url":"https://api.github.com/users/sirthias","html_url":"https://github.com/sirthias","followers_url":"https://api.github.com/users/sirthias/followers","following_url":"https://api.github.com/users/sirthias/following{/other_user}","gists_url":"https://api.github.com/users/sirthias/gists{/gist_id}","starred_url":"https://api.github.com/users/sirthias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirthias/subscriptions","organizations_url":"https://api.github.com/users/sirthias/orgs","repos_url":"https://api.github.com/users/sirthias/repos","events_url":"https://api.github.com/users/sirthias/events{/privacy}","received_events_url":"https://api.github.com/users/sirthias/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/akka/akka/milestones/65","html_url":"https://github.com/akka/akka/milestones/http-2.0-M3","labels_url":"https://api.github.com/repos/akka/akka/milestones/65/labels","id":1432373,"number":65,"title":"http-2.0-M3","description":"","creator":{"login":"drewhk","id":932285,"avatar_url":"https://avatars.githubusercontent.com/u/932285?v=3","gravatar_id":"","url":"https://api.github.com/users/drewhk","html_url":"https://github.com/drewhk","followers_url":"https://api.github.com/users/drewhk/followers","following_url":"https://api.github.com/users/drewhk/following{/other_user}","gists_url":"https://api.github.com/users/drewhk/gists{/gist_id}","starred_url":"https://api.github.com/users/drewhk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewhk/subscriptions","organizations_url":"https://api.github.com/users/drewhk/orgs","repos_url":"https://api.github.com/users/drewhk/repos","events_url":"https://api.github.com/users/drewhk/events{/privacy}","received_events_url":"https://api.github.com/users/drewhk/received_events","type":"User","site_admin":false},"open_issues":55,"closed_issues":3,"state":"open","created_at":"2015-11-27T12:01:59Z","updated_at":"2015-12-04T13:48:22Z","due_on":"2015-12-22T23:00:00Z","closed_at":null},"comments":1,"created_at":"2015-11-27T12:42:02Z","updated_at":"2015-12-04T13:48:22Z","closed_at":"2015-12-04T13:48:22Z","body":"These tests currently fail when added to the respective specs:\r\n\r\n`ContentNegotiationSpec`:\r\n\r\n```scala\r\n\"Accept: text/*, application/json;q=0.8, text/plain;q=0.5\" test { accept ⇒\r\n  accept(`text/plain`, `application/json`) should select(`application/json`, `UTF-8`)\r\n}\r\n\r\n\"Accept-Charset: UTF-8, *;q=0.8, us;q=0.1\" test { accept ⇒\r\n  accept(`text/plain` withCharset `US-ASCII`,\r\n    `text/plain` withCharset `ISO-8859-1`) should select(`text/plain`, `ISO-8859-1`)\r\n}\r\n```\r\n\r\n`CodingDirectiveSpec`:\r\n\r\n```scala\r\nGet(\"/\") ~> `Accept-Encoding`(HttpEncodingRange.`*`, deflate withQValue 0.2) ~> {\r\n  encodeResponseWith(Deflate, Gzip) { yeah }\r\n} ~> check {\r\n  response should haveContentEncoding(gzip)\r\n  strictify(responseEntity) shouldEqual HttpEntity(ContentType(`text/plain`, `UTF-8`), yeahGzipped)\r\n}\r\n```\r\n\r\nI'm going to submit a fix soon.\r\n\r\n/cc @jrudolph @2beaucoup"}}