v0.2.10
Bug Fixes
- download: Handle redirects manually to fix panic on Linear uploads (#13)
Linear uploads redirect to a CDN (like S3) with a signed URL. The HTTP client was using .redirect_behavior = .unhandled and then attempting to read the response body after receiving a 3xx redirect, causing a panic.
The fix:
- Manually detects 3xx redirect responses
- Extracts the
Locationheader and follows the redirect - Strips the
Authorizationheader when following redirects (security: prevents leaking API key to CDN) - Limits redirects to 5 to prevent infinite loops
Installation
npm install -g @0xbigboss/linear-cliOr download the binary for your platform from the assets below.