Skip to content

Commit e65131a

Browse files
committed
fix: stringify headers to prevent an Expection in RN
close #349
1 parent be73b28 commit e65131a

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
@@ -134,7 +134,7 @@ const setHeaders = (authOptions = {}, signKey) => {
134134
setAppId(headers, signKey);
135135
}
136136
if (AV._config.applicationProduction !== null) {
137-
headers['X-LC-Prod'] = AV._config.applicationProduction;
137+
headers['X-LC-Prod'] = String(AV._config.applicationProduction);
138138
}
139139
headers[AV._config.isNode ? 'User-Agent' : 'X-LC-UA'] = AV._config.userAgent;
140140

0 commit comments

Comments
 (0)