Skip to content

Commit 84907cf

Browse files
committed
chore: rename User-Agent to UA
1 parent ed47c02 commit 84907cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FeatureProbe.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Base64 } from "js-base64";
44
import { FPUser } from "./FPUser";
55

66
const PKG_VERSION = require("../package.json").version;
7-
const USER_AGENT = "Js/" + PKG_VERSION;
7+
const UA = "JS/" + PKG_VERSION;
88

99
const EVENTS = {
1010
READY: "ready",
@@ -217,7 +217,7 @@ class FeatureProbe extends TinyEmitter {
217217
headers: {
218218
Authorization: this.clientSdkKey,
219219
"Content-Type": "application/json",
220-
"User-Agent": USER_AGENT,
220+
"UA": UA,
221221
},
222222
})
223223
.then((response) => {
@@ -259,7 +259,7 @@ class FeatureProbe extends TinyEmitter {
259259
headers: {
260260
Authorization: this.clientSdkKey,
261261
"Content-Type": "application/json",
262-
"User-Agent": USER_AGENT,
262+
"UA": UA,
263263
},
264264
body: JSON.stringify(payload),
265265
});

0 commit comments

Comments
 (0)