followRedirect is documented to also accept a function

This commit is contained in:
Kenneth Pedersen committed 2015-10-17 22:41:25 +02:00
1 parent af5b8275d1
commit c86e7bad40
1 file changed
+1 -1
+1 -1
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;