softwaremill / tapir

Rapid development of self-documenting APIs
https://tapir.softwaremill.com
Apache License 2.0
1.34k stars 405 forks source link

Client should set default `Content-Type` header from the given codec #183

Closed guersam closed 5 years ago

guersam commented 5 years ago

The sttp client doesn't add Content-Type header for jsonBody so that I get 415 Unsupported Media Type error when I don't add it by myself.

As the bodies already have the content type in its codec, the client must be able to set the value automatically.

adamw commented 5 years ago

Fixed in 0.9.1

guersam commented 5 years ago

Wow it's so quick, thanks!