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

Accept Content-Type as symbol results in scrubbed body #44

Open
cramt opened this issue Apr 20, 2022 · 0 comments
Open

Accept Content-Type as symbol results in scrubbed body #44

cramt opened this issue Apr 20, 2022 · 0 comments
Assignees

Comments

@cramt
Copy link
Contributor

cramt commented Apr 20, 2022

When the Content-Type header is provided as a symbol instead of a string the body of the request will be scrubbed as if the Content-Type was not set

headers: {
  "Content-Type" => "application/json" # behaves as expected
}
headers: {
  "Content-Type": "application/json" # results in a scrubbed body as the key is a symbol
}

this is not very user-friendly and will probably result in some people not understanding why the body of their messages are getting scrubbed even when their requests sent has the correct headers

@cramt cramt changed the title Accept Content-Type as symbol Accept Content-Type as symbol results in scrubbed body Apr 20, 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

No branches or pull requests

2 participants