diff --git a/src/amadeus/client.js b/src/amadeus/client.js index 7c5072c..d83c381 100644 --- a/src/amadeus/client.js +++ b/src/amadeus/client.js @@ -174,7 +174,7 @@ class Client { params: params, bearerToken: bearerToken, clientVersion: this.version, - languageVersion: process.version, + languageVersion: process.versions.node, appId: this.customAppId, appVersion: this.customAppVersion, port: this.port, diff --git a/src/amadeus/client/request.js b/src/amadeus/client/request.js index 3873d6a..afdd320 100644 --- a/src/amadeus/client/request.js +++ b/src/amadeus/client/request.js @@ -33,7 +33,7 @@ class Request { this.queryPath = this.fullQueryPath(); this.bearerToken = options.bearerToken; this.clientVersion = options.clientVersion; - this.languageVersion = options.languageVersion.replace('v', ''); + this.languageVersion = options.languageVersion; this.appId = options.appId; this.appVersion = options.appVersion; this.headers = {