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 json escaped character handling #65

Merged
merged 6 commits into from
Apr 16, 2024
Merged

Fix json escaped character handling #65

merged 6 commits into from
Apr 16, 2024

Conversation

Rambatino
Copy link
Contributor

@Rambatino Rambatino commented Apr 12, 2024

When cleanString was called on the data, it removed the \\ which meant the escaping inside the JSON was then wrong.

Unfortunately, the use-case supporting the reason for this cleaning wasn't codified in a test and thus I'm not 100% sure what its purpose was.

  • Also fix the go mod version as was erroring when building locally
  • Added a cancellation context to main.go and so SIGTERM now terminates the server

@Rambatino Rambatino changed the title Fix json Fix json escaped character handling Apr 12, 2024
lukasmalkmus
lukasmalkmus previously approved these changes Apr 16, 2024
Copy link
Contributor

@lukasmalkmus lukasmalkmus left a comment

Choose a reason for hiding this comment

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

LGTM

One nitpick.

server/server.go Outdated Show resolved Hide resolved
Copy link
Contributor

@lukasmalkmus lukasmalkmus left a comment

Choose a reason for hiding this comment

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

LGTM

@Rambatino Rambatino merged commit c5550cc into main Apr 16, 2024
3 checks passed
@Rambatino Rambatino deleted the fix_json branch April 16, 2024 11:11
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.

2 participants