Skip to content

Commit e46b77d

Browse files
committed
Fixed HttpClient customOptions assign
1 parent 9e58159 commit e46b77d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/http/http-client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class HttpClient {
5959
}
6060

6161
if (customOptions) {
62-
options = Object.assign(options, options);
62+
options = Object.assign(options, customOptions);
6363
}
6464

6565
return new Promise<HttpClientResponse>((accept, reject) => {
@@ -115,7 +115,7 @@ export class HttpClient {
115115
}
116116

117117
if (customOptions) {
118-
options = Object.assign(options, options);
118+
options = Object.assign(options, customOptions);
119119
}
120120

121121
this.request(options, (error, response, body) => {
@@ -169,7 +169,7 @@ export class HttpClient {
169169
}
170170

171171
if (customOptions) {
172-
options = Object.assign(options, options);
172+
options = Object.assign(options, customOptions);
173173
}
174174

175175
return new Promise<HttpClientResponse>((accept, reject) => {
@@ -222,7 +222,7 @@ export class HttpClient {
222222
}
223223

224224
if (customOptions) {
225-
options = Object.assign(options, options);
225+
options = Object.assign(options, customOptions);
226226
}
227227

228228
this.request(options, (error, response, body) => {

0 commit comments

Comments
 (0)