Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sdks/typescript/http/http.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Observable, from } from '../rxjsStub';

import packageJson from '../package.json';
export * from './isomorphic-fetch';

/**
Expand Down Expand Up @@ -37,7 +37,9 @@ export type RequestBody = undefined | string | FormData | URLSearchParams;
* Represents an HTTP request context
*/
export class RequestContext {
private headers: { [key: string]: string } = {};
private headers: { [key: string]: string } = {
'X-ThoughtSpot-Client': `ThoughtSpot-Client/typescript/${packageJson.version}`
};
private body: RequestBody = undefined;
private url: URL;

Expand Down