mirror of
https://github.com/axios/axios.git
synced 2026-04-14 03:11:58 +08:00
* Enhance pipeFileToResponse with error handling Added error handling for file streaming in pipeFileToResponse function. * Security: Fix path traversal vulnerability in pipeFileToResponse with input validation and error handling Security: Enhance file streaming with comprehensive path validation - Add path traversal protection in pipeFileToResponse function - Implement input validation to prevent directory traversal attacks - Improve error handling for file read operations with proper status codes - Ensure resolved paths stay within intended directory boundaries - Add security checks using path.resolve() and startsWith() methods - Fix CodeQL "Uncontrolled data in path expression" vulnerability - Maintain backward compatibility while enhancing security --------- Co-authored-by: Jay <jasonsaayman@gmail.com> |
||
|---|---|---|
| .. | ||
| all | ||
| amd | ||
| get | ||
| post | ||
| postMultipartFormData | ||
| transform-response | ||
| upload | ||
| improved-network-errors.md | ||
| network_enhanced.js | ||
| README.md | ||
| server.js | ||
axios examples
To run the examples:
git clone https://github.com/axios/axios.gitcd axiosnpm installnpm run buildnpm run examples- http://localhost:3000