Skip to content

Commit

Permalink
Add missing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Sep 4, 2022
1 parent b0b4d55 commit ff8c225
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Expand Up @@ -78,10 +78,12 @@ export class AxiosTransport extends Transport {
resolvedUrl = resolvedUrl + resolvedPath;
}

// Add body addons to the request body if they exist.
if (this.bodyAddons) {
info = { ...info, ...this.bodyAddons };
}

// Create the request config.
let axiosConfig: AxiosRequestConfig<any> = {
method: this.method,
url: resolvedUrl,
Expand Down Expand Up @@ -127,6 +129,7 @@ export class AxiosTransport extends Transport {
}
}

// Send the request.
axios(axiosConfig)
.then(function (response) {
return response;
Expand Down

0 comments on commit ff8c225

Please sign in to comment.