Improve content type parser to handle HTTP methods correctly: - DELETE and GET requests with empty bodies return undefined (no parsing) - Other HTTP methods with empty bodies return empty object - Add method and URL to error logging for better debugging - Prevents JSON parsing errors on legitimate empty DELETE requests Fixes the GitHub disconnect endpoint which uses DELETE without body. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
---|---|---|
.. | ||
api.ts | ||
metrics.ts | ||
timeout.ts | ||
types.ts |