fsprojects / FsHttp

A lightweight F# HTTP library by @SchlenkR and @dawedawe
https://fsprojects.github.io/FsHttp/
Apache License 2.0
424 stars 42 forks source link

Fixed how MediaTypeHeaderValue is created #110

Closed Thecentury closed 1 year ago

Thecentury commented 1 year ago

It's not possible to create a MediaTypeHeaderValue from a string when it contains a charset — instead, the Parse method should be called (or MediaTypeHeaderValue should be created from a string containing only its content type, and then the charset should be set in the Charset property). This PR fixes this issue.

SchlenkR commented 1 year ago

Thank you very much @Thecentury for your work :) Have a nice weekend. Contributions are always welcome.

Thecentury commented 1 year ago

Thank you very much @Thecentury for your work :) Have a nice weekend. Contributions are always welcome.

Thank you for promptly merging the fix!