Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Don't add content-type if there's one #55

Merged
merged 1 commit into from
Nov 22, 2017

Conversation

BrunoBernardino
Copy link
Contributor

Fixes a problem where defining a content-type header with a different case (like 'Content-Type') and a non-string request.body would cause another content-type (lowercase) header to be set.

Also adds tests.

Trello Card.

Fixes a problem where defining a content-type header with a different case (like 'Content-Type') and a non-string `request.body` would cause another `content-type` (lowercase) header to be set.

Also adds tests.

[Trello Card](https://trello.com/c/u3vUzz1N/209-cli-the-header-content-type-does-not-replace-the-default-header-content-type).
Copy link
Contributor

@kola-er kola-er left a comment

Choose a reason for hiding this comment

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

Extensive test cases. Good to go.

@BrunoBernardino BrunoBernardino merged commit a18d536 into master Nov 22, 2017
@BrunoBernardino BrunoBernardino deleted the feature-improve-default-json-headers branch November 22, 2017 14:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants