google / cronet-transport-for-okhttp

This package allows OkHttp and Retrofit users to use Cronet as their transport layer, benefiting from features like QUIC/HTTP3 support or connection migration.
Apache License 2.0
452 stars 34 forks source link

Questions about header #9

Closed wushuai1415 closed 1 year ago

wushuai1415 commented 1 year ago

https://github.com/google/cronet-transport-for-okhttp/blob/099983037331b5290e8bad8aff3355b577a5721b/java/com/google/net/cronet/okhttptransport/RequestResponseConverter.java#L101

Why is the original value of Content Type in okRequest not retained, but changed to "application/octet stream"

Danstahrg commented 1 year ago

Thanks for reporting the issue. We should indeed preserve the header if content type isn't defined by the request body. Will be fixed momentarily.

wushuai1415 commented 1 year ago

When will a new version of this issue be released