retrofit2 addHeader() not work

Created on 16 Mar 2017  路  1Comment  路  Source: square/retrofit

when i use retrofit2 ,okhttp3.

@POST("chan/Login")
@Multipart
Call post( @Part MultipartBody.Part file);

but i use

response .newBuilder()
.addHeader("Charsert", "UTF-8")

is not work

if i use @Headers("Charsert: UTF-8") is work

Needs Info

Most helpful comment

Please provide a failing test case. Bug reports with tests get fixed. Here鈥檚 an example: https://gist.github.com/swankjesse/6608b4713ad80988cdc9

>All comments

Please provide a failing test case. Bug reports with tests get fixed. Here鈥檚 an example: https://gist.github.com/swankjesse/6608b4713ad80988cdc9

Was this page helpful?
0 / 5 - 0 ratings