{"action":"created","issue":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/987","repository_url":"https://api.github.com/repos/ninenines/cowboy","labels_url":"https://api.github.com/repos/ninenines/cowboy/issues/987/labels{/name}","comments_url":"https://api.github.com/repos/ninenines/cowboy/issues/987/comments","events_url":"https://api.github.com/repos/ninenines/cowboy/issues/987/events","html_url":"https://github.com/ninenines/cowboy/issues/987","id":153607200,"number":987,"title":"Serving static files over HTTP/2 results in an error","user":{"login":"djustinek","id":15683,"avatar_url":"https://avatars.githubusercontent.com/u/15683?v=3","gravatar_id":"","url":"https://api.github.com/users/djustinek","html_url":"https://github.com/djustinek","followers_url":"https://api.github.com/users/djustinek/followers","following_url":"https://api.github.com/users/djustinek/following{/other_user}","gists_url":"https://api.github.com/users/djustinek/gists{/gist_id}","starred_url":"https://api.github.com/users/djustinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djustinek/subscriptions","organizations_url":"https://api.github.com/users/djustinek/orgs","repos_url":"https://api.github.com/users/djustinek/repos","events_url":"https://api.github.com/users/djustinek/events{/privacy}","received_events_url":"https://api.github.com/users/djustinek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-07T17:35:14Z","updated_at":"2016-05-24T13:09:09Z","closed_at":null,"body":"Serving a static file results in an error when trying to connect through HTTP/2.\r\n\r\nExample for a png image:\r\n\r\n```\r\n19:30:34.323 <0.3345.4> Undefined:Undefined@Undefined [error] CRASH REPORT Process <0.3345.4> with 0 neighbours crashed with reason: bad argument in call to erlang:byte_size([<<\"image\">>,<<\"/\">>,<<\"png\">>,<<>>]) in cow_hpack:table_insert/2 line 1253\r\n```\r\n\r\n```\r\n19:30:34.324 <0.513.0> Undefined:Undefined@Undefined [error] Ranch listener https_api had connection process started with cowboy_tls:start_link/4 at <0.3345.4> exit with reason: badarg\r\n```\r\n\r\nHTTP/1.1 works as expected.\r\n\r\nDispatch rule example:\r\n\r\n```\r\nRules = {'_',\r\n      [{\"/test/[...]\", cowboy_static, {dir, StaticDir, [{mimetypes, cow_mimetypes, all}]}}]\r\n}\r\n```\r\n\r\nListener startup:\r\n\r\n```\r\n...\r\nDispatch = cowboy_router:compile(Rules), \r\n{ok, _} = cowboy:start_tls(https_api, 128, HttpsOpts, #{ env => #{ dispatch => Dispatch }})\r\n```"},"comment":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/comments/221262990","html_url":"https://github.com/ninenines/cowboy/issues/987#issuecomment-221262990","issue_url":"https://api.github.com/repos/ninenines/cowboy/issues/987","id":221262990,"user":{"login":"essen","id":141739,"avatar_url":"https://avatars.githubusercontent.com/u/141739?v=3","gravatar_id":"","url":"https://api.github.com/users/essen","html_url":"https://github.com/essen","followers_url":"https://api.github.com/users/essen/followers","following_url":"https://api.github.com/users/essen/following{/other_user}","gists_url":"https://api.github.com/users/essen/gists{/gist_id}","starred_url":"https://api.github.com/users/essen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/essen/subscriptions","organizations_url":"https://api.github.com/users/essen/orgs","repos_url":"https://api.github.com/users/essen/repos","events_url":"https://api.github.com/users/essen/events{/privacy}","received_events_url":"https://api.github.com/users/essen/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T13:09:09Z","updated_at":"2016-05-24T13:09:09Z","body":"Well the test suite simply didn't cover this. I'll fix it in Cowlib but Cowboy won't cover this case in its test suite for a while."}}
{"actor":{"display_login":"essen"}}