File tree 1 file changed +4
-1
lines changed
Parse/src/main/java/com/parse
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ public ParseHttpResponse intercept(Chain chain) throws IOException {
95
95
ParseHttpRequest request = chain .getRequest ();
96
96
ParseHttpRequest .Builder builder = new ParseHttpRequest .Builder (request )
97
97
.addHeader (ParseRESTCommand .HEADER_APPLICATION_ID , applicationId )
98
- .addHeader (ParseRESTCommand .HEADER_CLIENT_KEY , clientKey )
99
98
.addHeader (ParseRESTCommand .HEADER_CLIENT_VERSION , Parse .externalVersionName ())
100
99
.addHeader (
101
100
ParseRESTCommand .HEADER_APP_BUILD_VERSION ,
@@ -112,6 +111,10 @@ public ParseHttpResponse intercept(Chain chain) throws IOException {
112
111
// NETWORK_EXECUTOR
113
112
builder .addHeader (ParseRESTCommand .HEADER_INSTALLATION_ID , installationId ().get ());
114
113
}
114
+ // client key can be null with self-hosted Parse Server
115
+ if (clientKey != null ) {
116
+ builder .addHeader (ParseRESTCommand .HEADER_CLIENT_KEY , clientKey );
117
+ }
115
118
return chain .proceed (builder .build ());
116
119
}
117
120
});
You can’t perform that action at this time.
0 commit comments