NestJS allows HTTP status code and headers to be overwritten using method decorators. The adapter accepts these overwrites, but then change the values by its own logic (e.g. empty body always returns 204).
In this PR, original status code and headers are persisted and applied before sending the request, thus overwriting the adapter own logic for setting status code and some headers.
NestJS allows HTTP status code and headers to be overwritten using method decorators. The adapter accepts these overwrites, but then change the values by its own logic (e.g. empty body always returns 204).
In this PR, original status code and headers are persisted and applied before sending the request, thus overwriting the adapter own logic for setting status code and some headers.