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

Avoid double parse of JSON payload #14

Open
fdocr opened this issue Feb 14, 2023 · 0 comments
Open

Avoid double parse of JSON payload #14

fdocr opened this issue Feb 14, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@fdocr
Copy link
Owner

fdocr commented Feb 14, 2023

There's a BattleSnake::Context.from_json(env.params.json.to_json) on each endpoint. The .json._to_json could be avoided by passing in the string parameter directly instead of using the Kemal parsed ones.

@fdocr fdocr added the good first issue Good for newcomers label Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant