From 39fec7c35c56c8a66ca5157972f3d04b6cdad574 Mon Sep 17 00:00:00 2001 From: AnimeDL Date: Thu, 18 Apr 2024 13:33:34 -0700 Subject: [PATCH] Request Module Fixes --- modules/module.fetch.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/module.fetch.ts b/modules/module.fetch.ts index c814e06..ea059b9 100644 --- a/modules/module.fetch.ts +++ b/modules/module.fetch.ts @@ -30,7 +30,7 @@ export class Req { this.service = type; } - async getData(durl: string, params?: Params) { + async getData(durl: string, params?: RequestInit) { params = params || {}; // options const options: RequestInit = { @@ -62,8 +62,8 @@ export class Req { if(params.body){ options.body = params.body; } - if(typeof params.followRedirect == 'string'){ - options.redirect = params.followRedirect; + if(typeof params.redirect == 'string'){ + options.redirect = params.redirect; } // debug if(this.debug){