|
|
|
|
220
|
}
|
220
|
}
|
221
|
}
|
221
|
}
|
222
|
|
222
|
|
223
|
- if(method.equalsIgnoreCase("post") || method.equalsIgnoreCase("put")) {
|
|
|
|
|
223
|
+ if(method.equalsIgnoreCase("post") || method.equalsIgnoreCase("put") || method.equalsIgnoreCase("patch")) {
|
224
|
String cType = getHeaderIgnoreCases(mheaders, "Content-Type").toLowerCase();
|
224
|
String cType = getHeaderIgnoreCases(mheaders, "Content-Type").toLowerCase();
|
225
|
|
225
|
|
226
|
if(rawRequestBodyArray != null) {
|
226
|
if(rawRequestBodyArray != null) {
|
|
|
|
|
281
|
break;
|
281
|
break;
|
282
|
|
282
|
|
283
|
case WithoutBody:
|
283
|
case WithoutBody:
|
284
|
- if(method.equalsIgnoreCase("POST") || method.equalsIgnoreCase("PUT"))
|
|
|
|
|
284
|
+ if(method.equalsIgnoreCase("post") || method.equalsIgnoreCase("put") || method.equalsIgnoreCase("patch"))
|
285
|
{
|
285
|
{
|
286
|
builder.method(method, RequestBody.create(null, new byte[0]));
|
286
|
builder.method(method, RequestBody.create(null, new byte[0]));
|
287
|
}
|
287
|
}
|