Skip to content

Commit

Permalink
feat(no-custom-headers): no longer sending log headers (#43)
Browse files Browse the repository at this point in the history
* feat(no-custom-headers): no longer sending log headers

* feat(no-custom-headers): removed unused import

* chore: updating package version
  • Loading branch information
hiqbal01 authored Oct 25, 2019
1 parent ed61aa9 commit 34093d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bullhorn/taurus",
"version": "3.0.2",
"version": "3.0.3",
"description": "A simple client library for Bullhorn",
"keywords": [
"taurus",
Expand Down
9 changes: 5 additions & 4 deletions src/services/Staffing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Subject } from 'rxjs';
import { RestCredentials, StaffingAuthProvider } from './StaffingAuthProvider';
import { StaffingConfiguration } from '../types';
import { Cache, QueryString } from '../utils';
import uuid from 'uuid-random';

const getCookie = (cname: string) => {
// tslint:disable-next-line:no-typeof-undefined
Expand Down Expand Up @@ -128,6 +127,7 @@ export class Staffing {
return Staffing._http;
}

// tslint:disable-next-line:no-unused
static makeCall(callingIdentifier: string = ''): AxiosInstance {
const instance = axios.create({
paramsSerializer: (params: any) => {
Expand Down Expand Up @@ -168,10 +168,11 @@ export class Staffing {
start: new Date().getTime(),
url: (config.url || '').replace(config.baseURL || '', '').split('?')[0],
};
config.headers.uniqueCallId = uuid();
if (callingIdentifier !== '') {
config.headers.highLevelCallStack = callingIdentifier;
/* config.headers.uniqueCallId = uuid();
if (callingIdentifier !== '') {
config.headers.highLevelCallStack = callingIdentifier;
}
*/
return config;
});

Expand Down

0 comments on commit 34093d7

Please sign in to comment.