{"action":"created","issue":{"url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/187","labels_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/187/comments","events_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/187/events","html_url":"https://github.com/itamae-kitchen/itamae/issues/187","id":123875297,"number":187,"title":"Support redirect on http_request resource","user":{"login":"hico-horiuchi","id":1259714,"avatar_url":"https://avatars.githubusercontent.com/u/1259714?v=3","gravatar_id":"","url":"https://api.github.com/users/hico-horiuchi","html_url":"https://github.com/hico-horiuchi","followers_url":"https://api.github.com/users/hico-horiuchi/followers","following_url":"https://api.github.com/users/hico-horiuchi/following{/other_user}","gists_url":"https://api.github.com/users/hico-horiuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hico-horiuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hico-horiuchi/subscriptions","organizations_url":"https://api.github.com/users/hico-horiuchi/orgs","repos_url":"https://api.github.com/users/hico-horiuchi/repos","events_url":"https://api.github.com/users/hico-horiuchi/events{/privacy}","received_events_url":"https://api.github.com/users/hico-horiuchi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-25T11:44:53Z","updated_at":"2016-01-02T10:02:10Z","closed_at":null,"body":"Supporting redirect on `http_request` resource is required?\r\nLike this.\r\n\r\n```ruby\r\nuri = URI.parse(attributes.url)\r\nretry_count = 5\r\nretry_count.times do\r\n  http = Net::HTTP.new(uri.host, uri.port)\r\n  response = http.method(attributes.action).call(uri.request_uri, attributes.headers)\r\n\r\n  case response\r\n  when Net::HTTPRedirection\r\n    url = URI.parse(response['Location'])\r\n    next\r\n  else\r\n    break\r\n  end\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/comments/168378108","html_url":"https://github.com/itamae-kitchen/itamae/issues/187#issuecomment-168378108","issue_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/187","id":168378108,"user":{"login":"hico-horiuchi","id":1259714,"avatar_url":"https://avatars.githubusercontent.com/u/1259714?v=3","gravatar_id":"","url":"https://api.github.com/users/hico-horiuchi","html_url":"https://github.com/hico-horiuchi","followers_url":"https://api.github.com/users/hico-horiuchi/followers","following_url":"https://api.github.com/users/hico-horiuchi/following{/other_user}","gists_url":"https://api.github.com/users/hico-horiuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hico-horiuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hico-horiuchi/subscriptions","organizations_url":"https://api.github.com/users/hico-horiuchi/orgs","repos_url":"https://api.github.com/users/hico-horiuchi/repos","events_url":"https://api.github.com/users/hico-horiuchi/events{/privacy}","received_events_url":"https://api.github.com/users/hico-horiuchi/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T10:02:10Z","updated_at":"2016-01-02T10:02:10Z","body":"Sorry, Chef follows redirects in [lib/chef/http.rb](https://github.com/chef/chef/blob/master/lib/chef/http.rb#L363#L371) .\r\nAnd default redirection limit ( `redirect_limit` ) is 10."}}