修复options请求无响应体问题

This commit is contained in:
Looly
2023-10-25 11:38:49 +08:00
parent bea36c2b5f
commit 51488af226
2 changed files with 2 additions and 2 deletions

View File

@@ -1404,7 +1404,7 @@ public class HttpRequest extends HttpBase<HttpRequest> {
/**
* 是否忽略读取响应body部分<br>
* HEAD、CONNECT、OPTIONS、TRACE方法将不读取响应体
* HEAD、CONNECT、TRACE方法将不读取响应体
*
* @return 是否需要忽略响应body部分
* @since 3.1.2
@@ -1412,7 +1412,6 @@ public class HttpRequest extends HttpBase<HttpRequest> {
private boolean isIgnoreResponseBody() {
return Method.HEAD == this.method //
|| Method.CONNECT == this.method //
|| Method.OPTIONS == this.method //
|| Method.TRACE == this.method;
}