{"action":"opened","issue":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/3626","repository_url":"https://api.github.com/repos/crystal-lang/crystal","labels_url":"https://api.github.com/repos/crystal-lang/crystal/issues/3626/labels{/name}","comments_url":"https://api.github.com/repos/crystal-lang/crystal/issues/3626/comments","events_url":"https://api.github.com/repos/crystal-lang/crystal/issues/3626/events","html_url":"https://github.com/crystal-lang/crystal/issues/3626","id":193227180,"number":3626,"title":"HTTP::Headers is case-sensitive","user":{"login":"sdogruyol","id":990485,"avatar_url":"https://avatars.githubusercontent.com/u/990485?v=3","gravatar_id":"","url":"https://api.github.com/users/sdogruyol","html_url":"https://github.com/sdogruyol","followers_url":"https://api.github.com/users/sdogruyol/followers","following_url":"https://api.github.com/users/sdogruyol/following{/other_user}","gists_url":"https://api.github.com/users/sdogruyol/gists{/gist_id}","starred_url":"https://api.github.com/users/sdogruyol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdogruyol/subscriptions","organizations_url":"https://api.github.com/users/sdogruyol/orgs","repos_url":"https://api.github.com/users/sdogruyol/repos","events_url":"https://api.github.com/users/sdogruyol/events{/privacy}","received_events_url":"https://api.github.com/users/sdogruyol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-02T21:55:03Z","updated_at":"2016-12-02T21:55:03Z","closed_at":null,"body":"Someone using Kemal came with an issue that he can't use the WebSockets behind Nginx. However he could use Node.js with similar setup.\r\n\r\nLooking at the nginx.conf \r\n\r\n```\r\n  location    / {\r\n    gzip on;\r\n    gzip_min_length  1100;\r\n    gzip_buffers  4 32k;\r\n    gzip_types    text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml  application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;\r\n    gzip_vary on;\r\n    gzip_comp_level  6;\r\n\r\n    proxy_pass  http://{{ .APP }};\r\n    proxy_http_version 1.1;\r\n    proxy_set_header Upgrade $http_upgrade;\r\n    proxy_set_header Connection \"upgrade\";\r\n    proxy_set_header Host $http_host;\r\n    proxy_set_header X-Forwarded-Proto $scheme;\r\n    proxy_set_header X-Forwarded-For $remote_addr;\r\n    proxy_set_header X-Forwarded-Port $server_port;\r\n    proxy_set_header X-Request-Start $msec;\r\n    proxy_pass_request_headers on; # I added this as an attempt to forward everything\r\n  }\r\n```\r\n\r\ni found that it's `proxy_set_header Connection \"upgrade\";` which makes Crystal `HTTP::Headers` to fail. Changing to `Upgrade` works but IMHO this is a bug.\r\n\r\nHere's also a reproducible sample code\r\n\r\nhttps://play.crystal-lang.org/#/r/1feh"}}
{"actor":{"display_login":"sdogruyol"}}