{"action":"opened","issue":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/1329","repository_url":"https://api.github.com/repos/ninenines/cowboy","labels_url":"https://api.github.com/repos/ninenines/cowboy/issues/1329/labels{/name}","comments_url":"https://api.github.com/repos/ninenines/cowboy/issues/1329/comments","events_url":"https://api.github.com/repos/ninenines/cowboy/issues/1329/events","html_url":"https://github.com/ninenines/cowboy/issues/1329","id":369534688,"node_id":"MDU6SXNzdWUzNjk1MzQ2ODg=","number":1329,"title":"`headers_to_list` in cowboy_http can`t process `cowboy:http_headers` correctly","user":{"login":"DavidAlphaFox","id":1024948,"node_id":"MDQ6VXNlcjEwMjQ5NDg=","avatar_url":"https://avatars3.githubusercontent.com/u/1024948?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidAlphaFox","html_url":"https://github.com/DavidAlphaFox","followers_url":"https://api.github.com/users/DavidAlphaFox/followers","following_url":"https://api.github.com/users/DavidAlphaFox/following{/other_user}","gists_url":"https://api.github.com/users/DavidAlphaFox/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidAlphaFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidAlphaFox/subscriptions","organizations_url":"https://api.github.com/users/DavidAlphaFox/orgs","repos_url":"https://api.github.com/users/DavidAlphaFox/repos","events_url":"https://api.github.com/users/DavidAlphaFox/events{/privacy}","received_events_url":"https://api.github.com/users/DavidAlphaFox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-12T12:41:45Z","updated_at":"2018-10-12T12:41:45Z","closed_at":null,"author_association":"NONE","body":"I use `cowboy 2.5.0` in my project.\r\nWhen I put `<<\"set-cookie\">>` into  `cowboy:http_headers` with a binary cookie, it will crash.\r\nThe code  in `cowboy_http.erl`  on line 1115 assumes the `<<\"set-cookie\">>`  which is always a list.\r\n   \r\n     Headers1 ++ [{<<\"set-cookie\">>, Value} || Value <- SetCookies];\r\n"}}
{"actor":{"display_login":"DavidAlphaFox"}}