forked from loafle/openapi-generator-original
[cpp-ue4] add support for empty response (#7333)
This commit is contained in:
parent
2fd23f505e
commit
662c77a283
@ -56,7 +56,11 @@ void {{classname}}::HandleResponse(FHttpResponsePtr HttpResponse, bool bSucceede
|
|||||||
FString ContentType = HttpResponse->GetContentType();
|
FString ContentType = HttpResponse->GetContentType();
|
||||||
FString Content;
|
FString Content;
|
||||||
|
|
||||||
if (ContentType == TEXT("application/json"))
|
if(ContentType.IsEmpty())
|
||||||
|
{
|
||||||
|
return; // Nothing to parse
|
||||||
|
}
|
||||||
|
else if (ContentType == TEXT("application/json"))
|
||||||
{
|
{
|
||||||
Content = HttpResponse->GetContentAsString();
|
Content = HttpResponse->GetContentAsString();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user