-
Notifications
You must be signed in to change notification settings - Fork 615
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
Fix: Avoids an exception when presenting soap:Fault responses with invalid encoded chars #923
Conversation
@@ -49,6 +49,11 @@ | |||
it "returns false unless the HTTP response contains a SOAP fault" do | |||
expect(Savon::SOAPFault.present? new_response).to be_falsey | |||
end | |||
|
|||
it "returns true if the HTTP response contains a SOAP fault with invalid ecoded char" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it "returns true if the HTTP response contains a SOAP fault with invalid ecoded char" do | |
it "returns true even if the HTTP response contains a SOAP fault with invalid encoded characters" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added an even
in order to underline that this is an additional condition that the code's able to handle.
Hi @lluis thank you for your contribution - do you mind rebasing/merging in master? Once the minor comments are addressed, I can merge and cut a release |
This looks abandoned so I'll bring it in and apply the finishing tweaks myself, thanks! |
Co-authored-by: David Escala <descala@ingent.net>
Co-authored-by: David Escala <descala@ingent.net>
prevents "invalid byte sequence in UTF-8" exception when response has incorrectly encoded chars