Skip to content

Commit e797ec8

Browse files
authored
Merge pull request #542 from zhoul-HS/master
fix bug in ParseOkHttpClient that can cause errors when saving ParseFile
2 parents 0c3009a + ee619c4 commit e797ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public ParseOkHttpClient(int socketOperationTimeout, SSLSessionCache sslSessionC
144144
// Set Body
145145
ParseHttpBody parseBody = parseRequest.getBody();
146146
ParseOkHttpRequestBody okHttpRequestBody = null;
147-
if(parseBody instanceof ParseByteArrayHttpBody) {
147+
if(parseBody != null) {
148148
okHttpRequestBody = new ParseOkHttpRequestBody(parseBody);
149149
}
150150
switch (method) {

0 commit comments

Comments
 (0)