File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
sdk/identity/identity/src/client Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -161,10 +161,6 @@ export enum HttpMethod {
161161 * This class implements the API for network requests.
162162 */
163163export class HttpClient implements INetworkModule {
164- constructor ( ) {
165- axios . defaults . validateStatus = ( ) => true ;
166- }
167-
168164 /**
169165 * Http Get request
170166 * @param url -
@@ -177,7 +173,8 @@ export class HttpClient implements INetworkModule {
177173 const request : AxiosRequestConfig = {
178174 method : HttpMethod . GET ,
179175 url : url ,
180- headers : options && options . headers
176+ headers : options && options . headers ,
177+ validateStatus : ( ) => true
181178 } ;
182179
183180 const response = await axios ( request ) ;
@@ -202,7 +199,8 @@ export class HttpClient implements INetworkModule {
202199 method : HttpMethod . POST ,
203200 url : url ,
204201 data : ( options && options . body ) || "" ,
205- headers : options && options . headers
202+ headers : options && options . headers ,
203+ validateStatus : ( ) => true
206204 } ;
207205
208206 const response = await axios ( request ) ;
You can’t perform that action at this time.
0 commit comments