-
-
Notifications
You must be signed in to change notification settings - Fork 382
fix head request #1522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix head request #1522
Conversation
WalkthroughRewrites the HEAD handling promise chain in Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Router
participant Handler as RouteHandler
participant Composer as composed()
participant Length as getResponseLength
participant ResponseObj as Response
Client->>Router: HEAD /path
Router->>Handler: invoke handler context (c)
Handler->>Composer: ht[method].composed(c)
Composer-->>Length: promise resolves with _res
Length-->>Composer: resolve length
Composer->>ResponseObj: set Content-Length header
Composer-->>Client: return Response
note right of Composer #DFF2E1: Inline chained promise used\n(_res => getResponseLength(_res).then(...))
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should fix #1520
thanks for this comment @cyannuk #861 (comment)
Summary by CodeRabbit