From 51488af226aa9973d76d42f98d335e0edcf8fa29 Mon Sep 17 00:00:00 2001 From: Looly Date: Wed, 25 Oct 2023 11:38:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Doptions=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=97=A0=E5=93=8D=E5=BA=94=E4=BD=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + hutool-http/src/main/java/cn/hutool/http/HttpRequest.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 106af28b9..cc5f047c5 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ * 【core 】 修复TypeUtil.getClass方法强转报错问题(pr#1092@Github) * 【core 】 修复DataSize.parse(size)不支持空格问题(issue#I88Z4Z@Gitee) * 【http 】 修复SimpleServer在添加的HttpFilter中有获取请求参数时报错问题(issue#3343@Github) +* 【http 】 修复options请求无响应体问题 ------------------------------------------------------------------------------------------------------------- # 5.8.22(2023-09-13) diff --git a/hutool-http/src/main/java/cn/hutool/http/HttpRequest.java b/hutool-http/src/main/java/cn/hutool/http/HttpRequest.java index f7eb47d11..657acd8e8 100755 --- a/hutool-http/src/main/java/cn/hutool/http/HttpRequest.java +++ b/hutool-http/src/main/java/cn/hutool/http/HttpRequest.java @@ -1404,7 +1404,7 @@ public class HttpRequest extends HttpBase { /** * 是否忽略读取响应body部分
- * HEAD、CONNECT、OPTIONS、TRACE方法将不读取响应体 + * HEAD、CONNECT、TRACE方法将不读取响应体 * * @return 是否需要忽略响应body部分 * @since 3.1.2 @@ -1412,7 +1412,6 @@ public class HttpRequest extends HttpBase { private boolean isIgnoreResponseBody() { return Method.HEAD == this.method // || Method.CONNECT == this.method // - || Method.OPTIONS == this.method // || Method.TRACE == this.method; }