Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Oct 31, 2023
1 parent 9fac28b commit b5f0679
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions lib/services/sf.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,12 +782,12 @@ function StateAbstract(options)
requestOptions.headers =
Util.apply(this.getDefaultReqHeaders(), requestOptions.headers || {});

// if (Util.isLoginRequest(requestOptions.url)) {
// Util.apply(requestOptions.headers, {
// "CLIENT_APP_VERSION": requestOptions.json.data.CLIENT_APP_VERSION,
// "CLIENT_APP_ID": requestOptions.json.data.CLIENT_APP_ID,
// })
// }
if (Util.isLoginRequest(requestOptions.url)) {
Util.apply(requestOptions.headers, {
"CLIENT_APP_VERSION": requestOptions.json.data.CLIENT_APP_VERSION,
"CLIENT_APP_ID": requestOptions.json.data.CLIENT_APP_ID,
})
}

// augment the options with the absolute url
requestOptions.absoluteUrl = this.buildFullUrl(requestOptions.url);
Expand Down
4 changes: 2 additions & 2 deletions test/unit/mock/mock_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ function buildRequestOutputMappings(clientInfo)
{
'Accept': 'application/json',
'Content-Type': 'application/json',
//"CLIENT_APP_VERSION": clientInfo.version,
//"CLIENT_APP_ID": "JavaScript",
"CLIENT_APP_VERSION": clientInfo.version,
"CLIENT_APP_ID": "JavaScript",
},
json:
{
Expand Down

0 comments on commit b5f0679

Please sign in to comment.