handle default Content-Type
being set in default Response
instances
#1049
Labels
CLI
enhancement
Improve something existing (e.g. no docs, new APIs, etc)
good first issue
Good for newcomers
Milestone
Type of Change
Enhancement
Summary
As part of #948 , one thing that was observed was that in NodeJS at least, a
Response
object by default will have a defaultContent-Type
oftext/plain;charset=UTF-8
. This means when runningmergeResponse
in resource-utils.js this will overwrite any incomingContent-Type
set by a plugin.Details
To work around this, we have to do something like below, so it would be nice to see if there is a better way to handle this, in the off chance someone actually wants to return this specific value.
The text was updated successfully, but these errors were encountered: