Skip to content

Content type of response changes randomly to text/plain (instead of application/json) #766

Open
@falkorotter

Description

Question

I use @TypedRoute.Get() in a controller to retrieve data. Usually I get as the expected content-type application/json but in random responses I get text/plain as content-type. If I use the default Nest.js decorator @get() instead of @TypedRoute.Get(), the response always consistently has the expected content-type application/json. Is there an explanation for this behavior?

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions