Skip to content

Avoid double parse of JSON payload #14

Description

@fdocr

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions