-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ErrorContractSerializerHelper returns serialized string when bodyToSerialize is already a string #107
Comments
nmyers322
added a commit
to nmyers322/riposte
that referenced
this issue
Aug 2, 2018
nmyers322
added a commit
to nmyers322/riposte
that referenced
this issue
Aug 2, 2018
nmyers322
added a commit
to nmyers322/riposte
that referenced
this issue
Aug 2, 2018
nmyers322
added a commit
to nmyers322/riposte
that referenced
this issue
Aug 2, 2018
Fixed in #108 - thanks @nmyers322 ! This will go out with the next release. |
Released in version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inside ErrorContractSerializerHelper, line 43:
I've encountered a situation where I want to return HTML as a string. However, this line will accept bodyToSerialize and will attempt to serialize the HTML as a string, which results in the HTML being wrapped in quotes and all line breaks and quotes are then escaped. For example,
would become
Solution: include another conditional. If errorResponseBody is already a string, do not re-serialize it.
The text was updated successfully, but these errors were encountered: