Skip to content

Commit 45959c5

Browse files
committed
Add info about user agent header
1 parent e80fdaf commit 45959c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
1010

1111
- HTTP proxy support ([#38](https://github.com/Scalr/scalr-vscode/issues/38))
1212
- Scalr Workspaces & Runs Commands ([#36]https://github.com/Scalr/scalr-vscode/issues/36))
13+
-- Added User-Agent scalr-vscode/version header for API tracking
1314

1415
## [0.0.5]
1516

src/api/init.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export const initClient = (accountName: string, token: string) => {
3030
(response) => response,
3131
(error) => {
3232
showErrorMessage(error);
33-
// return Promise.reject(error);
3433
}
3534
);
3635

@@ -56,7 +55,7 @@ export const initClient = (accountName: string, token: string) => {
5655
paramsSerializer: (params) => {
5756
return qs.stringify(params, { arrayFormat: 'comma' });
5857
},
59-
timeout: 3000, //miliseconds
58+
timeout: 5000, //miliseconds
6059
proxy: proxy,
6160
throwOnError: false,
6261
});

0 commit comments

Comments
 (0)