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

Content-Type header in request sample section is different than the actual request Content-Type header #58

Open
minazek opened this issue Oct 18, 2021 · 0 comments

Comments

@minazek
Copy link

minazek commented Oct 18, 2021

The Content-Type header in request sample section does not match actual content type in the request:
image

The cause of this issue is in the

headers.find { |key, _| key == 'Accept' }&.last || 'any'

because it reads Accept header instead of Content-Type header.

When the line is changed to this:

headers.find { |key, _| key == 'Content-Type' }&.last || 'any'

then the out looks correct:
image

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

No branches or pull requests

1 participant