Commit Graph

347 Commits

Author SHA1 Message Date
zsdddz
b9425a3b2b feat(hutool-http): 控制请求头是否聚合 2025-03-01 16:37:53 +08:00
Looly
05f16f051e change link 2025-02-21 17:40:14 +08:00
peng.li
2b0b02d1c3 Supports parsing HarmonyOS useragent 2025-01-23 18:34:17 +08:00
Looly
5f57da864d 增加HtmlUtil.cleanEmptyTag方法(pr#3838@Github) 2025-01-10 09:58:29 +08:00
freeok
dc13edd663 feat: Add cleanEmptyTag method for HtmlUtil 2025-01-10 08:19:51 +08:00
Looly
cc82342001 add test 2024-11-29 17:51:05 +08:00
海轩铭
e411b082e7 将所有main中未使用的函数调用进行了删除 2024-11-14 16:44:31 +08:00
Looly
0ba6c8ecda 增加Windows微信浏览器识别(issue#IB3SJF@Gitee) 2024-11-12 18:54:19 +08:00
Looly
277ecc90dc HttpRequest增加setFixedContentLength方法 2024-09-14 15:31:22 +08:00
Looly
975cfa0fb1 HttpRequest增加setFixedLengthStreamingMode方法 2024-09-13 18:59:50 +08:00
Looly
b00844e896 HttpRequest增加setFixedLengthStreamingMode方法 2024-09-13 18:57:00 +08:00
Looly
bba5906118 add test 2024-09-06 17:58:57 +08:00
Looly
b7ad1e82d1 修复重定向没有按照RFC7231规范跳转的问题,修改为除了307外重定向使用GET方式 2024-09-06 17:13:49 +08:00
Looly
cefc0fd559 HttpConfig增加配置setUseGetIfRedirect 2024-09-06 16:45:12 +08:00
Looly
3cd25c5864 HttpConfig增加setUseDefaultContentTypeIfNull方法 2024-09-04 17:15:24 +08:00
Looly
050c379b3f 修复getFileNameFromDisposition不符合规范问题 2024-08-15 18:27:02 +08:00
Looly
b427440274 单元测试由Junit4变更为Junit5 2024-08-09 15:03:46 +08:00
Looly
c7e0bc5d9f 单元测试由Junit4变更为Junit5 2024-08-09 14:32:30 +08:00
Looly
e183d53787 改进ContentType.get忽略空格 2024-07-31 00:23:53 +08:00
Golden Looly
2e51604cb7
Merge pull request #3664 from tian-pengfei/v5-master-contentType
增加ContentType#get识别的准确率。
2024-07-31 00:18:13 +08:00
tiandy tian
eb0b48bead 增加ContentType#get识别的准确率。 2024-07-19 18:21:29 +08:00
Looly
5c86d4eced fix test 2024-07-04 21:37:23 +08:00
Looly
7e7575c512 修复因RFC3986理解有误导致的UrlPath处理冒号转义问题 2024-07-04 12:27:15 +08:00
Looly
b8db9b1a8d 修复getFileNameFromDisposition获取头错误问题 2024-06-27 11:58:40 +08:00
wenlianggong
9ddb271f2e Merge remote-tracking branch 'origin/v5-dev' into v5-dev 2024-06-25 20:43:23 +08:00
wenlianggong
97019f79b5 添加测试用例testHttpResource 2024-06-25 20:43:16 +08:00
Looly
6c086ff8b6 修复Mac下的微信浏览器被识别为移动端问题 2024-06-21 11:43:07 +08:00
Looly
996bf90db2 ignore test 2024-05-20 17:23:54 +08:00
Looly
228785b1b2 getFileNameFromDisposition更加规范,从多个头的值中获取,且filename*优先级更高 2024-05-20 09:27:10 +08:00
Looly
d07cece0d4 增加ExceptionFilter和DefaultExceptionFilter支持异常处理 2024-05-06 15:52:00 +08:00
Looly
5a1b50f1de 修复HttpDownloader全局超时无效问题 2024-04-26 15:30:04 +08:00
Looly
88cf47b5bb 修复HttpDownloader全局超时无效问题 2024-04-25 09:34:36 +08:00
Looly
7a5f910aa7 修复HttpRequest.header相同key被覆盖问题 2024-04-20 15:29:29 +08:00
Looly
9a6ac21798 修复HttpUtil.urlWithFormUrlEncoded方法重复编码问题 2024-04-08 17:31:25 +08:00
Looly
f15612cd55 修复CVE-2022-22885,HttpGlobalConfig可选关闭信任host 2024-03-12 10:29:38 +08:00
Looly
e4dffeb4c8 修复HtmlUtil.removeHtmlAttr处理空格问题 2024-01-25 18:01:25 +08:00
Looly
fc762d9872 add test 2024-01-25 15:57:21 +08:00
Looly
eeeaf7664a 修复UserAgentUtil对QQ浏览器识别问题 2024-01-18 16:12:28 +08:00
Looly
cca184257a HTMLFilter保留p标签 2023-12-20 20:53:32 +08:00
Looly
d46f00d2be 修复graalvm编译后,未读取Content-Length可能导致的读取时间过长问题 2023-12-12 23:04:27 +08:00
lzpeng723
b613d1e3a5
修复已向 response 中写入文件后,
还会继续执行 response.send404("404 Not Found !"); 
此时会在cn.hutool.http.server.HttpServerResponse#send(int, long) 抛异常

Signed-off-by: lzpeng723 <1500913306@qq.com>
2023-11-19 04:41:00 +00:00
Looly
51488af226 修复options请求无响应体问题 2023-10-25 11:38:49 +08:00
Looly
7d80f1aa14 修复SimpleServer在添加的HttpFilter中有获取请求参数时报错问题 2023-10-25 00:21:35 +08:00
Looly
a341bf04bd UserAgent增加百度浏览器识别 2023-09-25 17:31:10 +08:00
Looly
01cb9bdd26 add test 2023-09-21 11:37:56 +08:00
Looly
6d2d57e34b 修复VersionComparator在极端数据排序时候违反了自反性问题 2023-09-21 11:34:05 +08:00
handy
b119d65006 移除未使用到的import 2023-09-14 16:56:06 +08:00
Looly
caa2b29f05 fix test 2023-09-08 19:09:47 +08:00
Looly
8c8ea211a1 add test 2023-09-08 18:39:46 +08:00
Looly
fcb1d86229 add test 2023-08-30 22:55:31 +08:00