forked from loafle/openapi-generator-original
* Fixed cpprest generator to include Content-Type header in requests. * Fixing indent to use spaces.
This commit is contained in:
@@ -180,7 +180,10 @@ pplx::task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/r
|
||||
else
|
||||
{
|
||||
throw ApiException(415, U("{{classname}}->{{operationId}} does not consume any supported media type"));
|
||||
}
|
||||
}
|
||||
|
||||
//Set the request content type in the header.
|
||||
headerParams[U("Content-Type")] = requestHttpContentType;
|
||||
|
||||
{{#authMethods}}
|
||||
// authentication ({{name}}) required
|
||||
|
||||
Reference in New Issue
Block a user