Skip to content

Commit

Permalink
Bugfix: check that options exists before trying to use options.proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
nozzlegear committed Jun 24, 2017
1 parent 3d49208 commit 08f0282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function getAxiosInstance(options: ClientOptions): AxiosInstance {
// Like fetch, Axios should never throw an error if it receives a response
validateStatus: (status) => true,
auth: auth,
proxy: options.proxy
proxy: options && options.proxy
});

return instance;
Expand Down

0 comments on commit 08f0282

Please sign in to comment.