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 regarding AWS signatures #32 #33

Merged
merged 5 commits into from
Sep 27, 2022
Merged

Fix regarding AWS signatures #32 #33

merged 5 commits into from
Sep 27, 2022

Conversation

mrkamel
Copy link
Owner

@mrkamel mrkamel commented Sep 18, 2022

Using the json: ... option of http-rb can lead to a AWS signature mismatch, since SearchFlip is using Oj to generate the json for which the signature is calculated, while http-rb is not using Oj. This results in different json being sent over the wire and being used for calculating the signature. More concretely, http-rb is using .to_json when available and .to_json e.g. encodes & as \\u0026 while Oj is not. To fix that SearchFlip::HttpClient now takes the json option, generates the json using Oj and passes it as body to http-rb instead.

@mrkamel mrkamel merged commit be037ba into master Sep 27, 2022
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.

1 participant