Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Commit

Permalink
fix: request options won't be persistent anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtraction committed Jan 30, 2019
1 parent b047e67 commit 2a5c812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class BWAPIWrapper {

public async request(path: string, options?: Request.RequestPromiseOptions) {
let url: string = this.BASE_URL + path;
let requestOptions = this.OPTIONS;
let requestOptions = Object.assign({}, this.OPTIONS);

if (options && typeof options === "object") {
Object.assign(requestOptions, options);
Expand Down

0 comments on commit 2a5c812

Please sign in to comment.