mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-03-11 17:45:30 +00:00
Request Module Fixes
This commit is contained in:
parent
591fac8b08
commit
39fec7c35c
1 changed files with 3 additions and 3 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue