-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: incorrect request headers in proxy mode and deleted unparsable c…
…ached data (#719) proxy时因为一个低级的拼写错误没有正确的携带请求头,导致代理模式时返回的数据不正确。但是现在用户发起的请求中的user-agent和x-forwarded等头部信息也没有正确的携带。虽然影响不大但还是想和跑批时更新的请求做一下区分。 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Enhanced error handling and logging for task execution, improving traceability. - **Improvements** - Updated HTTP header access method for better alignment with context structure. - Clarified logic for manifest retrieval based on file type, ensuring correct API usage. - Streamlined cache handling and response generation logic in package management. - Improved method visibility and organization within the cache service and controller. - Simplified task creation logic and cache removal processes in the controller. - Updated expected outcomes for cache-related operations in the test cases. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
1 parent
638a3da
commit 2780c53
Showing
5 changed files
with
97 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.