Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

fix: edge case where Content-Type could sometimes be doubled up #484

Merged
merged 1 commit into from
Feb 20, 2020

Conversation

erunion
Copy link
Member

@erunion erunion commented Feb 20, 2020

This resolves an edge case where if an x-headers array, or as a parameter, with a Content-Type is present on an OAS, we'd double up Content-Type when building a HAR with the mime type defined on the requestBody.

Content types defined in x-headers, or parameters, should always take precedence.

@erunion erunion added the type:bug Something isn't working label Feb 20, 2020
@erunion erunion merged commit bea9a00 into master Feb 20, 2020
@erunion erunion deleted the fix/double-content-types branch February 20, 2020 18:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant