{"action":"created","issue":{"url":"https://api.github.com/repos/request/request/issues/2526","repository_url":"https://api.github.com/repos/request/request","labels_url":"https://api.github.com/repos/request/request/issues/2526/labels{/name}","comments_url":"https://api.github.com/repos/request/request/issues/2526/comments","events_url":"https://api.github.com/repos/request/request/issues/2526/events","html_url":"https://github.com/request/request/issues/2526","id":204041434,"number":2526,"title":"followAllRedirects: true - does not work when placed in the 'defaults'","user":{"login":"razvanilin","id":5342321,"avatar_url":"https://avatars.githubusercontent.com/u/5342321?v=3","gravatar_id":"","url":"https://api.github.com/users/razvanilin","html_url":"https://github.com/razvanilin","followers_url":"https://api.github.com/users/razvanilin/followers","following_url":"https://api.github.com/users/razvanilin/following{/other_user}","gists_url":"https://api.github.com/users/razvanilin/gists{/gist_id}","starred_url":"https://api.github.com/users/razvanilin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razvanilin/subscriptions","organizations_url":"https://api.github.com/users/razvanilin/orgs","repos_url":"https://api.github.com/users/razvanilin/repos","events_url":"https://api.github.com/users/razvanilin/events{/privacy}","received_events_url":"https://api.github.com/users/razvanilin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-30T15:28:40Z","updated_at":"2017-02-19T22:32:44Z","closed_at":null,"body":"This does not follow the redirect:\r\n\r\n```\r\nvar request = require('request');\r\n\r\nrequest = request.defaults({\r\n  followAllRedirects: true\r\n});\r\n\r\nvar options = {\r\n  url: \"something.com\",\r\n  method: \"POST\",\r\n  ....\r\n};\r\n\r\nrequest(options, (err, res, body) => {\r\n // does not follow the redirect\r\n}); \r\n```\r\n\r\nThis follows the redirect:\r\n\r\n```\r\nvar request = require('request');\r\n\r\nvar options = {\r\n  url: \"something.com\",\r\n  method: \"POST\",\r\n  followAllRedirects: true,\r\n  ....\r\n};\r\n\r\nrequest(options, (err, res, body) => {\r\n  // follows the redirect\r\n});\r\n```\r\n\r\nDid anybody came across this issue before? I also tried to put `followRedirect: true` in the defaults but that didn't work either."},"comment":{"url":"https://api.github.com/repos/request/request/issues/comments/280955299","html_url":"https://github.com/request/request/issues/2526#issuecomment-280955299","issue_url":"https://api.github.com/repos/request/request/issues/2526","id":280955299,"user":{"login":"FredKSchott","id":622227,"avatar_url":"https://avatars.githubusercontent.com/u/622227?v=3","gravatar_id":"","url":"https://api.github.com/users/FredKSchott","html_url":"https://github.com/FredKSchott","followers_url":"https://api.github.com/users/FredKSchott/followers","following_url":"https://api.github.com/users/FredKSchott/following{/other_user}","gists_url":"https://api.github.com/users/FredKSchott/gists{/gist_id}","starred_url":"https://api.github.com/users/FredKSchott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredKSchott/subscriptions","organizations_url":"https://api.github.com/users/FredKSchott/orgs","repos_url":"https://api.github.com/users/FredKSchott/repos","events_url":"https://api.github.com/users/FredKSchott/events{/privacy}","received_events_url":"https://api.github.com/users/FredKSchott/received_events","type":"User","site_admin":false},"created_at":"2017-02-19T22:32:44Z","updated_at":"2017-02-19T22:32:44Z","body":"I can't reproduce, can you include a public URL that you see this behavior with?"}}
{"actor":{"display_login":"FredKSchott"}}