fix(core): Ensure maxRedirects is used for any http request defining it (#8706)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-02-22 17:56:48 +01:00
committed by GitHub
parent 8c4a744c56
commit 246c988b93
5 changed files with 62 additions and 17 deletions

View File

@@ -552,15 +552,21 @@ export interface IRequestOptions {
json?: boolean;
useStream?: boolean;
encoding?: string | null;
followRedirect?: boolean;
followAllRedirects?: boolean;
timeout?: number;
rejectUnauthorized?: boolean;
proxy?: string | AxiosProxyConfig;
simple?: boolean;
gzip?: boolean;
maxRedirects?: number;
resolveWithFullResponse?: boolean;
/** Whether to follow GET or HEAD HTTP 3xx redirects @default true */
followRedirect?: boolean;
/** Whether to follow **All** HTTP 3xx redirects @default false */
followAllRedirects?: boolean;
/** Max number of redirects to follow @default 21 */
maxRedirects?: number;
}
export interface PaginationOptions {