Don't overwrite character encoding when setting bodyText()
igr opened this issue · comments
Igor Spasić commented
.bodyText()
overides
contentTypeJson
neroux commented
Are you referring to
?Thats on purpose, isnt it? It explicitly sets the default mime type, right? In case thats not desired one has the other two bodyText
s, right?
Am I missing something? :)
Igor Spasić commented
The use case is the following:
HttpRequest
.contentTypeJson()
.bodyText("json");
This means that bodyText
will override the content type and I need to re-order the methods.
I would like to preserve the content type if set, when assuming defaults.
neroux commented
I think I got you :), you only want to use defaults when there is nothing specified yet, right?
Igor Spasić commented
Correct :)