Skip to content
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: skip leading whitespace #783

Merged
merged 1 commit into from
May 25, 2022

Conversation

polachok
Copy link
Contributor

In json, whitespace is not significant, so we shouldn't rely on the first character to be { or |. serde_json parses such json
just fine.

@polachok polachok requested a review from a team as a code owner May 25, 2022 15:32
@niklasad1
Copy link
Member

Fair enough nice catch, can you fix ws server as well then?

Then you need to modify some tests that assumes no whitespaces...

@polachok polachok force-pushed the insignificant-whitespace branch from 8a723af to 562380d Compare May 25, 2022 16:30
@polachok
Copy link
Contributor Author

Done

Copy link
Member

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

Copy link
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for the contribution

@niklasad1 niklasad1 merged commit 47d36b9 into paritytech:master May 25, 2022
@polachok polachok deleted the insignificant-whitespace branch May 26, 2022 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants