mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-18 17:47:05 +00:00
* Fixing empty Content-Type in HTTP requests * Updating samples
This commit is contained in:
@@ -123,7 +123,7 @@ public class PingApi {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user