Skip to content

Commit 8873597

Browse files
aontasrogerhu
authored andcommitted
Add missing User-Agent header. (#651)
1 parent b80f25f commit 8873597

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Parse/src/main/java/com/parse/ParsePlugins.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public Response intercept(Chain chain) throws IOException {
106106
.set(ParseRESTCommand.HEADER_APP_BUILD_VERSION,
107107
String.valueOf(ManifestInfo.getVersionCode()))
108108
.set(ParseRESTCommand.HEADER_APP_DISPLAY_VERSION,
109-
ManifestInfo.getVersionName());
109+
ManifestInfo.getVersionName())
110+
.set(ParseRESTCommand.USER_AGENT, userAgent());
110111
if (request.header(ParseRESTCommand.HEADER_INSTALLATION_ID) == null) {
111112
// We can do this synchronously since the caller is already on a background thread
112113
headersBuilder.set(ParseRESTCommand.HEADER_INSTALLATION_ID, installationId().get());

0 commit comments

Comments
 (0)