Skip to content

Omit Content-Type header when request has no body#16

Merged
shockie merged 2 commits intomasterfrom
content-type-header-only-when-request-has-body
Jun 21, 2018
Merged

Omit Content-Type header when request has no body#16
shockie merged 2 commits intomasterfrom
content-type-header-only-when-request-has-body

Conversation

@shockie
Copy link
Copy Markdown
Contributor

@shockie shockie commented Jun 21, 2018

Helpscout tries to parse the body when a Content-Type header is submitted,
it now checks if the request got a body, if so set the Content-Type header to
application/json unless Content-Type header is already set.

Copy link
Copy Markdown

@timflapper timflapper left a comment

Choose a reason for hiding this comment

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

:shipit:

@shockie shockie merged commit ebdc416 into master Jun 21, 2018
@shockie shockie deleted the content-type-header-only-when-request-has-body branch June 21, 2018 13:29
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