Literal word "text" does not work, you must use "text/plain" #4669
-
I'm supporting a "legacy" jQuery application. Notice in the screenshot that the I tried changing the Here's my problem: we are testing the transition away from a Java Servlet to Node, so I want to leave the jQuery code UNMODIFIED to the fullest extent possible. Is there anyway that I can get Express to "force" the interpretation of this payload as "text/plain" without having to change the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @NamedArray , what is the |
Beta Was this translation helpful? Give feedback.
Hi @NamedArray , what is the
content-type
header set to currently that is coming in? If just the wordtext
, you need to just use thefunction
value of thetype
parameter, since the string parameter only accepts valid mime types.