mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
修复options请求无响应体问题
This commit is contained in:
parent
bea36c2b5f
commit
51488af226
@ -20,6 +20,7 @@
|
|||||||
* 【core 】 修复TypeUtil.getClass方法强转报错问题(pr#1092@Github)
|
* 【core 】 修复TypeUtil.getClass方法强转报错问题(pr#1092@Github)
|
||||||
* 【core 】 修复DataSize.parse(size)不支持空格问题(issue#I88Z4Z@Gitee)
|
* 【core 】 修复DataSize.parse(size)不支持空格问题(issue#I88Z4Z@Gitee)
|
||||||
* 【http 】 修复SimpleServer在添加的HttpFilter中有获取请求参数时报错问题(issue#3343@Github)
|
* 【http 】 修复SimpleServer在添加的HttpFilter中有获取请求参数时报错问题(issue#3343@Github)
|
||||||
|
* 【http 】 修复options请求无响应体问题
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.22(2023-09-13)
|
# 5.8.22(2023-09-13)
|
||||||
|
@ -1404,7 +1404,7 @@ public class HttpRequest extends HttpBase<HttpRequest> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否忽略读取响应body部分<br>
|
* 是否忽略读取响应body部分<br>
|
||||||
* HEAD、CONNECT、OPTIONS、TRACE方法将不读取响应体
|
* HEAD、CONNECT、TRACE方法将不读取响应体
|
||||||
*
|
*
|
||||||
* @return 是否需要忽略响应body部分
|
* @return 是否需要忽略响应body部分
|
||||||
* @since 3.1.2
|
* @since 3.1.2
|
||||||
@ -1412,7 +1412,6 @@ public class HttpRequest extends HttpBase<HttpRequest> {
|
|||||||
private boolean isIgnoreResponseBody() {
|
private boolean isIgnoreResponseBody() {
|
||||||
return Method.HEAD == this.method //
|
return Method.HEAD == this.method //
|
||||||
|| Method.CONNECT == this.method //
|
|| Method.CONNECT == this.method //
|
||||||
|| Method.OPTIONS == this.method //
|
|
||||||
|| Method.TRACE == this.method;
|
|| Method.TRACE == this.method;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user