You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
creating a simple REST-Service with express and using this lib I encountered the problem, that the result is not parsed as JSON although one is returned and the content type was set.
but express created application/json; charset=utf-8, simply adding a third element in the list is helping in that case or changing the detection with a split and comparing each element after having trimmed it.
If you wish I can drop a PR later, depending which solution you prefer or maybe you have another one in mind.
Kind regards,
Michael
The text was updated successfully, but these errors were encountered:
Hi,
creating a simple REST-Service with express and using this lib I encountered the problem, that the result is not parsed as JSON although one is returned and the content type was set.
Currently the code checks for
but express created
application/json; charset=utf-8
, simply adding a third element in the list is helping in that case or changing the detection with a split and comparing each element after having trimmed it.If you wish I can drop a PR later, depending which solution you prefer or maybe you have another one in mind.
Kind regards,
Michael
The text was updated successfully, but these errors were encountered: