Skip to content

Commit 2c10705

Browse files
authored
fix(android): PATCH method null body
1 parent e8cc741 commit 2c10705

File tree

1 file changed

+2
-2
lines changed
  • src/platforms/android/java/com/github/triniwiz/async

1 file changed

+2
-2
lines changed

src/platforms/android/java/com/github/triniwiz/async/Async.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ public Request authenticate(Route route, Response response) throws IOException {
332332
}
333333
}
334334
RequestBody body = null;
335-
boolean isPostOrPut = options.method.equals("POST") || options.method.equals("PUT");
336-
if (isPostOrPut) {
335+
boolean isPostPutOrPatch = options.method.equals("POST") || options.method.equals("PUT") || options.method.equals("PATCH");
336+
if (isPostPutOrPatch) {
337337
if (options.content instanceof File) {
338338

339339
} else if (options.content instanceof String) {

0 commit comments

Comments
 (0)