Skip to content

Commit 37e636a

Browse files
author
Aamod Pisat
committed
bug fixes:
only() & includeReference() not working in react-native ios boolean value in where() query doesn't work automation script added
1 parent da0f40d commit 37e636a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/lib/request.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as Utils from "./utils.js";
22
import HTTPRequest from "runtime/http.js";
33
import when from "runtime/when.js";
4+
import * as Package from '../../../package.json';
45

56

67

@@ -34,6 +35,7 @@ export default function Request(options) {
3435
xhr.open(method, url+'?'+queryParams, true);
3536
// set headers
3637
xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
38+
xhr.setRequestHeader('X-User-Agent', 'contentstack-(JS-SDK)/' + Package.version);
3739
for (var header in headers) {
3840
xhr.setRequestHeader(header, headers[header]);
3941
}

0 commit comments

Comments
 (0)