{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/9861","labels_url":"https://api.github.com/repos/golang/go/issues/9861/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/9861/comments","events_url":"https://api.github.com/repos/golang/go/issues/9861/events","html_url":"https://github.com/golang/go/issues/9861","id":57548485,"number":9861,"title":"net/http/cgi: should not put port into REMOTE_ADDR and REMOTE_HOST","user":{"login":"asergeyev","id":715656,"avatar_url":"https://avatars.githubusercontent.com/u/715656?v=3","gravatar_id":"","url":"https://api.github.com/users/asergeyev","html_url":"https://github.com/asergeyev","followers_url":"https://api.github.com/users/asergeyev/followers","following_url":"https://api.github.com/users/asergeyev/following{/other_user}","gists_url":"https://api.github.com/users/asergeyev/gists{/gist_id}","starred_url":"https://api.github.com/users/asergeyev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asergeyev/subscriptions","organizations_url":"https://api.github.com/users/asergeyev/orgs","repos_url":"https://api.github.com/users/asergeyev/repos","events_url":"https://api.github.com/users/asergeyev/events{/privacy}","received_events_url":"https://api.github.com/users/asergeyev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-13T01:52:32Z","updated_at":"2015-02-14T18:36:52Z","closed_at":null,"body":"In all recent versions (1.4.x) cgi library puts http.Request RemoteAddr into both REMOTE_ADDR and REMOTE_HOST env vars. That is a string that has \"IP:port\" combination.\r\n\r\nCGI 1.1 standard asks to put only IP address to REMOTE_ADDR and omit port...  I suggest to make things work this way too. \r\n\r\nApache puts port into REMOTE_PORT variable (which is not in spec and not that important to have). I'd vote for ignoring port alltogether.\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/74386548","html_url":"https://github.com/golang/go/issues/9861#issuecomment-74386548","issue_url":"https://api.github.com/repos/golang/go/issues/9861","id":74386548,"user":{"login":"asergeyev","id":715656,"avatar_url":"https://avatars.githubusercontent.com/u/715656?v=3","gravatar_id":"","url":"https://api.github.com/users/asergeyev","html_url":"https://github.com/asergeyev","followers_url":"https://api.github.com/users/asergeyev/followers","following_url":"https://api.github.com/users/asergeyev/following{/other_user}","gists_url":"https://api.github.com/users/asergeyev/gists{/gist_id}","starred_url":"https://api.github.com/users/asergeyev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asergeyev/subscriptions","organizations_url":"https://api.github.com/users/asergeyev/orgs","repos_url":"https://api.github.com/users/asergeyev/repos","events_url":"https://api.github.com/users/asergeyev/events{/privacy}","received_events_url":"https://api.github.com/users/asergeyev/received_events","type":"User","site_admin":false},"created_at":"2015-02-14T18:36:52Z","updated_at":"2015-02-14T18:36:52Z","body":"Proposed change:\r\nhttps://go-review.googlesource.com/4892"}}