Skip to content

Conversation

@edwardgeorge
Copy link
Contributor

Seeing the charset param for application/json content-type present in the wild (in this case Azure CR), which was causing a strum error to be thrown when trying to construct the MediaTypes enum from the header.

Following the existing solution above in the enum this simply adds a second 'serialize' attribute param to the ApplicationJson variant.

It is noted that @steveej added a 'TODO' to find a generic way to handle these on the existing usage, but this is not addressed in this bugfix.

Seeing the charset param for application/json content-type present in the wild,
which was causing a strum error to be thrown when trying to construct the
MediaTypes enum from the header.

Following the existing solution above in the enum this simply adds a second
'serialize' attribute param to the ApplicationJson variant.

It is noted that steveeJ added a 'TODO' to find a generic way to handle these
on the existing usage, but this is not addressed in this bugfix.
@edwardgeorge
Copy link
Contributor Author

Ah, i just noticed that this is a duplicate of #113 which I somehow missed. So I will close this and comment there.

@edwardgeorge edwardgeorge deleted the fix-json-type-charset branch September 9, 2020 13:48
@edwardgeorge
Copy link
Contributor Author

Ah, i just noticed that this is a duplicate of #113 which I somehow missed. So I will close this and comment there.

reading the discussion on that PR, this looks to be the correct fix for the issue I was experiencing: #176

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.

1 participant