You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8dea99e
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
Fixes all ten crash, hang, RFC-compliance, proxy, and response-quality
bugs found in the review. Each fix is a separate commit; the edge-case
test suite lands first.
- **Malformed percent-encoding crashed the server**: `/%zz` threw
`URIError`; now rejected safely. (`904a911`)
- **Directory without `index.html` crashed the server**: now serves 404.
(`f6209f7`)
- **`If-Modified-Since` alone never produced 304**: now honored per RFC
9110. (`f407c96`)
- **Upstream dying mid-response hung clients**: client socket now
closes. (`9db8e12`)
- **Proxy CORS preflight hit the upstream**: OPTIONS now returns 204
directly. (`98305ef`)
- **Packaged update check could raise an uncaught callback error**:
callback failures are contained. (`b3f8b15`)
- **Multi-range requests incorrectly returned 416**: first range is
served. (`1f0ab67`)
- **WebSocket upgrades were unsupported**: HTTP and HTTPS upstream
upgrade tunneling added. (`28183b9`)
- **Existing `X-Forwarded-For` was overwritten**: client address is
appended. (`330e42d`)
- **Static 400/403/405/416 responses had empty bodies**: descriptive
text bodies added. (`e998c05`)
## Verification
- Edge-case suite and full tests pass where ports are available.
- `pnpm lint` passes.
- The two redirect tests are blocked locally by an unrelated `node
server.js` process occupying port 8080.
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
0 commit comments