{"action":"created","issue":{"url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/915","labels_url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/915/labels{/name}","comments_url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/915/comments","events_url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/915/events","html_url":"https://github.com/PerlDancer/Dancer2/pull/915","id":81390347,"number":915,"title":"Improve error info when no HTTP_X_FORWARDED_HOST","user":{"login":"abeverley","id":4589486,"avatar_url":"https://avatars.githubusercontent.com/u/4589486?v=3","gravatar_id":"","url":"https://api.github.com/users/abeverley","html_url":"https://github.com/abeverley","followers_url":"https://api.github.com/users/abeverley/followers","following_url":"https://api.github.com/users/abeverley/following{/other_user}","gists_url":"https://api.github.com/users/abeverley/gists{/gist_id}","starred_url":"https://api.github.com/users/abeverley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abeverley/subscriptions","organizations_url":"https://api.github.com/users/abeverley/orgs","repos_url":"https://api.github.com/users/abeverley/repos","events_url":"https://api.github.com/users/abeverley/events{/privacy}","received_events_url":"https://api.github.com/users/abeverley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-27T10:31:50Z","updated_at":"2015-06-03T16:22:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PerlDancer/Dancer2/pulls/915","html_url":"https://github.com/PerlDancer/Dancer2/pull/915","diff_url":"https://github.com/PerlDancer/Dancer2/pull/915.diff","patch_url":"https://github.com/PerlDancer/Dancer2/pull/915.patch"},"body":"If behind_proxy is set but no HTTP_X_FORWARDED_HOST header is received (such as if the proxy's request was from a client using HTTP/1.0), then Dancer dies with a rather mysterious \"Use of uninitialized value in split\" error message. This patch improves the error message to help with\r\ndebugging.\r\n\r\nIncidentally, this problem is confounded when subsequent requests are made from the proxy (even with HTTP/1.1) as the environment variables have already been set. I'm not sure whether this requires a\r\nfurther patch? If not, this patch at least makes it easier to fix the problem."},"comment":{"url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/comments/108509331","html_url":"https://github.com/PerlDancer/Dancer2/pull/915#issuecomment-108509331","issue_url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/915","id":108509331,"user":{"login":"abeverley","id":4589486,"avatar_url":"https://avatars.githubusercontent.com/u/4589486?v=3","gravatar_id":"","url":"https://api.github.com/users/abeverley","html_url":"https://github.com/abeverley","followers_url":"https://api.github.com/users/abeverley/followers","following_url":"https://api.github.com/users/abeverley/following{/other_user}","gists_url":"https://api.github.com/users/abeverley/gists{/gist_id}","starred_url":"https://api.github.com/users/abeverley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abeverley/subscriptions","organizations_url":"https://api.github.com/users/abeverley/orgs","repos_url":"https://api.github.com/users/abeverley/repos","events_url":"https://api.github.com/users/abeverley/events{/privacy}","received_events_url":"https://api.github.com/users/abeverley/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T16:22:01Z","updated_at":"2015-06-03T16:22:01Z","body":"Just to clarify, Rusty's patch will fix the denial of service, but it will still leave a bug whereby ```host``` will not return the correct value under the circumstances described."}}