-
-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
Package version
@adonisjs/http-server@7.7.0
Describe the bug
When using generateRequestId:true in config/app.ts, the expected behaviour is that the Request has the id property (this is working fine) see request docs. In the Response we should have the x-response-id header which is working fine except for responses without body, like noContent, created, etc, where the header is missing. Documentation does not mention exceptions for these cases see response docs.
Here I have two endpoints, one with empty body and the other with body 👇

Empty body endpoint has no x-response-id header 👇

With body endpoint has a x-response-id header 👇

Reproduction repo
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels