Skip to content

Commit

Permalink
Send 204 when WebAPI response contains no data
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Sep 16, 2024
1 parent 4555a46 commit 9986bdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webui/webapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ void WebApplication::doProcessRequest()
}
}
break;
case QMetaType::UnknownType:
status(204);
break;
case QMetaType::QString:
default:
print(result.data.toString(), Http::CONTENT_TYPE_TXT);
Expand Down

0 comments on commit 9986bdc

Please sign in to comment.