{"action":"created","issue":{"url":"https://api.github.com/repos/pintsized/lua-resty-http/issues/94","repository_url":"https://api.github.com/repos/pintsized/lua-resty-http","labels_url":"https://api.github.com/repos/pintsized/lua-resty-http/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/pintsized/lua-resty-http/issues/94/comments","events_url":"https://api.github.com/repos/pintsized/lua-resty-http/issues/94/events","html_url":"https://github.com/pintsized/lua-resty-http/issues/94","id":190641188,"number":94,"title":"connection in dubious state?","user":{"login":"zzctmac","id":4269638,"avatar_url":"https://avatars.githubusercontent.com/u/4269638?v=3","gravatar_id":"","url":"https://api.github.com/users/zzctmac","html_url":"https://github.com/zzctmac","followers_url":"https://api.github.com/users/zzctmac/followers","following_url":"https://api.github.com/users/zzctmac/following{/other_user}","gists_url":"https://api.github.com/users/zzctmac/gists{/gist_id}","starred_url":"https://api.github.com/users/zzctmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzctmac/subscriptions","organizations_url":"https://api.github.com/users/zzctmac/orgs","repos_url":"https://api.github.com/users/zzctmac/repos","events_url":"https://api.github.com/users/zzctmac/events{/privacy}","received_events_url":"https://api.github.com/users/zzctmac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-21T07:44:21Z","updated_at":"2016-11-24T02:48:17Z","closed_at":null,"body":"when I use request_uri to request a http url, i got this error.here  my code is:\r\n```lua\r\n_M.get = function(self, key)\r\n    local httpc = http.new()\r\n    local path = \"/get?key=\".. key;\r\n    local api = string.format(\"http://%s:%s\", self.host, self.port);\r\n    local resp, err = httpc:request_uri(api, {\r\n        method = \"GET\",\r\n        path = path\r\n    })\r\n    if not resp then\r\n        ngx.say(\"request error :\", err)\r\n        return nil;\r\n    end\r\n    if resp.status ~= 200 then\r\n        return nil;\r\n    end\r\n    local content = resp.body;\r\n    if(_M.prepare ~= nil) then\r\n        content = _M.prepare.handle_one(content);\r\n    end\r\n\r\n    return content;\r\n\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/pintsized/lua-resty-http/issues/comments/262678279","html_url":"https://github.com/pintsized/lua-resty-http/issues/94#issuecomment-262678279","issue_url":"https://api.github.com/repos/pintsized/lua-resty-http/issues/94","id":262678279,"user":{"login":"zzctmac","id":4269638,"avatar_url":"https://avatars.githubusercontent.com/u/4269638?v=3","gravatar_id":"","url":"https://api.github.com/users/zzctmac","html_url":"https://github.com/zzctmac","followers_url":"https://api.github.com/users/zzctmac/followers","following_url":"https://api.github.com/users/zzctmac/following{/other_user}","gists_url":"https://api.github.com/users/zzctmac/gists{/gist_id}","starred_url":"https://api.github.com/users/zzctmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzctmac/subscriptions","organizations_url":"https://api.github.com/users/zzctmac/orgs","repos_url":"https://api.github.com/users/zzctmac/repos","events_url":"https://api.github.com/users/zzctmac/events{/privacy}","received_events_url":"https://api.github.com/users/zzctmac/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T02:48:17Z","updated_at":"2016-11-24T02:48:17Z","body":"....I used the old version ,the line is 809 [https://github.com/pintsized/lua-resty-http/blob/master/lib/resty/http.lua#L809](https://github.com/pintsized/lua-resty-http/blob/master/lib/resty/http.lua#L809)"}}
{"actor":{"display_login":"zzctmac"}}