forked from loafle/openapi-generator-original
return a null instead of application/json when no content types are set (#5941)
* return a null instead of application/json when no content types are set * update petstore sample Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
parent
cb50ad590f
commit
e47739dda5
@ -169,7 +169,7 @@ namespace {{packageName}}.Client
|
||||
public static String SelectHeaderContentType(String[] contentTypes)
|
||||
{
|
||||
if (contentTypes.Length == 0)
|
||||
return "application/json";
|
||||
return null;
|
||||
|
||||
foreach (var contentType in contentTypes)
|
||||
{
|
||||
|
@ -174,7 +174,7 @@ namespace Org.OpenAPITools.Client
|
||||
public static String SelectHeaderContentType(String[] contentTypes)
|
||||
{
|
||||
if (contentTypes.Length == 0)
|
||||
return "application/json";
|
||||
return null;
|
||||
|
||||
foreach (var contentType in contentTypes)
|
||||
{
|
||||
|
@ -174,7 +174,7 @@ namespace Org.OpenAPITools.Client
|
||||
public static String SelectHeaderContentType(String[] contentTypes)
|
||||
{
|
||||
if (contentTypes.Length == 0)
|
||||
return "application/json";
|
||||
return null;
|
||||
|
||||
foreach (var contentType in contentTypes)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user