Skip to content

Commit

Permalink
Don't send data on WebAPI status 204
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Jul 15, 2024
1 parent 3da5c73 commit 6aa5bf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webui/webapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ void WebApplication::doProcessRequest()
break;
case QMetaType::QString:
default:
print(result.data.toString(), Http::CONTENT_TYPE_TXT);
if (result.statusCode != 204)
print(result.data.toString(), Http::CONTENT_TYPE_TXT);
break;
}
}
Expand Down

0 comments on commit 6aa5bf0

Please sign in to comment.