-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Do not append missing XML declaration in formatted responses #1156
Comments
Hi @BoboTiG can i raise a PR for that fix? |
Of course @this-is-r-gaurav 👍 :) |
Two test cases are failing after this PR:
I think after this fix formatted file will need to remove xml prolog. If i need to fix those test, do let me know please. :) |
Indeed, simply removing the XML declaration is needed, let's do that in the same PR :) |
Thanks @BoboTiG , learned new things today. I have updated the fixture files as well as logic. |
Minimal reproduction code and steps
repro.xml
with that content:Current result
Note the additional XML declaration (it is not present from the original response).
Expected result
The responses should not be altered:
Additional information, screenshots, or code examples
When pretty-printing a XML response that does not contain a XML declaration,
minidom
will append one (source).The text was updated successfully, but these errors were encountered: