DELETE request can be accompanied with a body, hence enable it for http URL connection client.

This commit is contained in:
Anu Thomas Chandy 2021-02-03 13:32:56 -08:00
Родитель 283efec3b9
Коммит 2c81daa384
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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) {