Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
feat: add js-request as sdk language header (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
notrab authored Nov 27, 2018
1 parent a9d6311 commit 7bcade4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class createClient {
)}`
const headers: Headers = {
'Content-Type': 'application/json',
'X-MOLTIN-SDK-LANGUAGE': 'JS-REQUEST',
Authorization: `Bearer ${await this.authenticate()}`,
...(application && { 'X-MOLTIN-APPLICATION': application }),
...(currency && { 'X-MOLTIN-CURRENCY': currency }),
Expand Down

0 comments on commit 7bcade4

Please sign in to comment.