Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
♻️ Add User-Agent header to API requests
Browse files Browse the repository at this point in the history
Instead of os header
  • Loading branch information
willclarktech committed Apr 24, 2018
1 parent cac4af8 commit 7274768
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api_client/api_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const defaultOptions = {

const commonHeaders = {
'Content-Type': 'application/json',
os: 'lisk-js-api',
'User-Agent': 'lisk-js/1.0',
};

export default class APIClient {
Expand Down
4 changes: 2 additions & 2 deletions test/api_client/api_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ describe('APIClient module', () => {
];
const defaultHeaders = {
'Content-Type': 'application/json',
os: 'lisk-js-api',
'User-Agent': 'lisk-js/1.0',
};

const customHeaders = {
'Content-Type': 'application/json',
os: 'lisk-js-api',
'User-Agent': 'lisk-js/1.0',
nethash: testnetHash,
};

Expand Down

0 comments on commit 7274768

Please sign in to comment.