Skip to content

Commit

Permalink
fix validate status
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmatei committed Nov 20, 2024
1 parent e0346cb commit e046e68
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/http/src/api/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,21 @@ export class ApiService {
headers['x-request-id'] = context.requestId;
}

return {
const config: AxiosRequestConfig = {
timeout,
maxRedirects,
httpsAgent: settings.httpsAgent,
responseType: settings.responseType,
auth: settings.auth,
params: settings.params,
headers,
validateStatus: settings.validateStatus,
};

if (settings.validateStatus) {
config.validateStatus = settings.validateStatus;
}

return config;
}

private requestsExecuter = new PendingExecuter();
Expand Down

0 comments on commit e046e68

Please sign in to comment.