-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
Configuration:
<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>retrofit</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client</artifactId>
<version>2.4.3</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-extras-retrofit2</artifactId>
<version>2.4.3</version>
</dependency>I found that content type header is not passed properly to AHC's request. The problem is that content-type is contained in Body object (retrofit object), not in headers list, but this field is ignored in createRequest method of org.asynchttpclient.extras.retrofit.AsyncHttpClientCall