DELETE request can be accompanied with a body, hence enable it for http URL connection client.
This commit is contained in:
Родитель
283efec3b9
Коммит
2c81daa384
|
@ -87,12 +87,12 @@ class HttpUrlConnectionAsyncHttpClient implements HttpClient {
|
|||
case HEAD:
|
||||
case OPTIONS:
|
||||
case TRACE:
|
||||
case DELETE:
|
||||
connection.setRequestMethod(httpRequest.getHttpMethod().toString());
|
||||
break;
|
||||
case PUT:
|
||||
case POST:
|
||||
case PATCH:
|
||||
case DELETE:
|
||||
connection.setRequestMethod(httpRequest.getHttpMethod().toString());
|
||||
final byte[] requestContent = httpRequest.getBody();
|
||||
if (requestContent != null) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче