google/cronet-transport-for-okhttp

Questions about header

wushuai1415 opened this issue · 2 comments

if (okHttpRequest.header(CONTENT_TYPE_HEADER_NAME) == null && body.contentType() != null) {

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

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.

When will a new version of this issue be released