hyuan280
|
f89d6342d1
|
fix: 修复Cookie解码二进制数据导致请求发送时UnicodeEncodeError
|
2026-01-21 16:36:28 +08:00 |
|
xjy
|
ce83bc24bd
|
fix: 修复站点Cookie处理的两个关键问题
本次提交修复了PT站点搜索功能失败的两个根本原因:
1. **Cookie URL解码问题**
- 问题:数据库中存储的Cookie值包含URL编码(如%3D、%2B、%2F),
但cookie_parse()函数未进行解码
- 影响:所有使用URL编码Cookie的站点可能无法正常登录
- 修复:在app/utils/http.py的cookie_parse()中添加unquote()解码
2. **httpx Cookie jar覆盖问题**(关键)
- 问题:httpx.AsyncClient的Cookie jar机制会自动保存服务器返回的
Set-Cookie,并在后续请求中覆盖我们传入的Cookie
- 表现:传入正确的c_secure_uid/c_secure_pass,实际发送的却是
PHPSESSID等错误Cookie
- 修复:在创建AsyncClient时传入Cookie,而不是在request()时传入
修改文件:
- app/utils/http.py: cookie_parse()添加URL解码 + AsyncClient传入cookies
- app/modules/indexer/spider/__init__.py: 清理调试代码
测试验证:
- ✅ pterclub 搜索功能恢复正常
- ✅ 春天站点搜索功能正常(验证通用性)
|
2026-01-13 09:29:05 +08:00 |
|
jxxghp
|
90f74d8d2b
|
feat:支持FlareSolverr
|
2025-08-11 21:14:46 +08:00 |
|
jxxghp
|
c8749b3c9c
|
add aiopath
|
2025-07-30 19:49:59 +08:00 |
|
jxxghp
|
5f6310f5d6
|
fix httpx proxy
|
2025-07-30 17:34:09 +08:00 |
|
jxxghp
|
42d955b175
|
重构订阅和用户相关API,支持异步操作
|
2025-07-30 15:23:25 +08:00 |
|
jxxghp
|
f077a9684b
|
添加异步请求工具类;优化fetch_image和proxy_img函数为异步实现提升性能
|
2025-07-30 08:30:24 +08:00 |
|
jxxghp
|
7a1cbf70e3
|
feat:特定默认UA
|
2025-07-14 12:35:08 +08:00 |
|
景大侠
|
6c02766000
|
AutoCloseResponse支持上下文管理协议,避免部分插件报错
|
2025-07-03 18:38:48 +08:00 |
|
景大侠
|
8146b680c6
|
fix: 修复AutoCloseResponse类在反序列化时无限递归
|
2025-07-01 01:29:01 +08:00 |
|
Attente
|
0f0c3e660b
|
style: 清理空白字符
移除代码中的 trailing whitespace 和空行缩进, 提升代码整洁度
|
2025-06-29 22:49:58 +08:00 |
|
jxxghp
|
23c9862eb3
|
fix site parser
|
2025-06-27 12:26:17 +08:00 |
|
jxxghp
|
d8a53da8ee
|
auto close RequestUtils
|
2025-06-27 08:30:57 +08:00 |
|
jxxghp
|
9555ac6305
|
fix RequestUtils
|
2025-06-27 08:09:38 +08:00 |
|
jxxghp
|
27dd681d9f
|
fix RequestUtils
|
2025-06-26 17:36:22 +08:00 |
|
jxxghp
|
5d188e3877
|
fix module close
|
2025-06-03 17:11:44 +08:00 |
|
jxxghp
|
aa93c560e5
|
feat:分享订阅删除功能
|
2025-01-15 13:31:16 +08:00 |
|
InfinityPacer
|
2e7e74c803
|
feat(encoding): update configuration to performance mode
|
2024-11-27 13:52:17 +08:00 |
|
InfinityPacer
|
83fc474dbe
|
feat(encoding): enhance encoding detection with confidence threshold
|
2024-11-27 12:33:57 +08:00 |
|
InfinityPacer
|
89819f8730
|
feat(cache): add HTTP cache support for image proxy
|
2024-10-14 17:00:27 +08:00 |
|
InfinityPacer
|
efb624259a
|
fix(Utils): remove unnecessary methods
|
2024-10-13 22:40:58 +08:00 |
|
InfinityPacer
|
93b899b7e9
|
refactor(UrlUtils): Migrate URL-related methods from RequestUtils
|
2024-08-21 22:12:56 +08:00 |
|
jxxghp
|
1f87bc643a
|
sync main
|
2024-08-19 13:06:39 +08:00 |
|
InfinityPacer
|
6392ee627f
|
fix 请求失败时记录debug日志
|
2024-06-19 16:36:31 +08:00 |
|
InfinityPacer
|
cb0bb8a38e
|
refactor request host
|
2024-06-19 15:51:57 +08:00 |
|
InfinityPacer
|
de2323d67a
|
refactor RequestUtils
|
2024-06-19 13:45:02 +08:00 |
|
jxxghp
|
ffac57ad4d
|
支持 YemaPT
|
2024-05-20 16:55:36 +08:00 |
|
jxxghp
|
2ee477c35e
|
fix requests session stream
|
2023-10-05 17:32:23 -07:00 |
|
jxxghp
|
1a49c7c59e
|
try fix
|
2023-10-05 07:44:21 +08:00 |
|
jxxghp
|
e3707f39bb
|
fix wallpaper
|
2023-09-22 11:33:25 +08:00 |
|
jxxghp
|
0e36d003c0
|
fix db session
|
2023-09-09 19:26:56 +08:00 |
|
jxxghp
|
5dc11b07e3
|
fix #342
|
2023-09-01 17:30:21 +08:00 |
|
jxxghp
|
14d3ff6477
|
fix webhooks
|
2023-06-11 20:44:51 +08:00 |
|
jxxghp
|
1e82ecc16c
|
fix 索引乱码问题
|
2023-06-11 18:58:29 +08:00 |
|
jxxghp
|
4d06f86e62
|
init
|
2023-06-06 07:15:17 +08:00 |
|