Merge pull request #6337 from kennep/master

followRedirect is documented to also accept a function
This commit is contained in:
Horiuchi_H
2015-10-20 15:44:17 +09:00

View File

@@ -79,7 +79,7 @@ declare module 'request' {
method?: string;
headers?: Headers;
body?: any;
followRedirect?: boolean;
followRedirect?: boolean|((response: http.IncomingMessage) => boolean);
followAllRedirects?: boolean;
maxRedirects?: number;
encoding?: string;