Skip to content

Commit d33b7c8

Browse files
authored
fix: stringify headers to prevent an Expection in RN (#395)
close #349
1 parent db8d1cd commit d33b7c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const setHeaders = (sessionToken, signKey) => {
121121
}
122122
}
123123
if (AV._config.applicationProduction !== null) {
124-
headers['X-LC-Prod'] = AV._config.applicationProduction;
124+
headers['X-LC-Prod'] = String(AV._config.applicationProduction);
125125
}
126126
if (!AV._config.isNode) {
127127
headers['X-LC-UA'] = `AV/${AV.version}`;

0 commit comments

Comments
 (0)