File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Parse/src/main/java/com/parse Expand file tree Collapse file tree 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 {
9595 ParseHttpRequest request = chain .getRequest ();
9696 ParseHttpRequest .Builder builder = new ParseHttpRequest .Builder (request )
9797 .addHeader (ParseRESTCommand .HEADER_APPLICATION_ID , applicationId )
98- .addHeader (ParseRESTCommand .HEADER_CLIENT_KEY , clientKey )
9998 .addHeader (ParseRESTCommand .HEADER_CLIENT_VERSION , Parse .externalVersionName ())
10099 .addHeader (
101100 ParseRESTCommand .HEADER_APP_BUILD_VERSION ,
@@ -112,6 +111,10 @@ public ParseHttpResponse intercept(Chain chain) throws IOException {
112111 // NETWORK_EXECUTOR
113112 builder .addHeader (ParseRESTCommand .HEADER_INSTALLATION_ID , installationId ().get ());
114113 }
114+ // client key can be null with self-hosted Parse Server
115+ if (clientKey != null ) {
116+ builder .addHeader (ParseRESTCommand .HEADER_CLIENT_KEY , clientKey );
117+ }
115118 return chain .proceed (builder .build ());
116119 }
117120 });
You can’t perform that action at this time.
0 commit comments