Skip to content

Commit

Permalink
wsd: wopiAccessCheck, use nameShort for Status
Browse files Browse the repository at this point in the history
So in json response we have `Ok` instead of `CheckStatus::Ok`.

Signed-off-by: Méven Car <[email protected]>
Change-Id: I0d26ac1e098e8a6889248102d3baad5cd9a38bc1
  • Loading branch information
meven committed Dec 26, 2024
1 parent ef0fb24 commit 90c664f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wsd/ClientRequestDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ bool ClientRequestDispatcher::handleWopiAccessCheckRequest(const Poco::Net::HTTP

const auto sendResult = [this, socket](CheckStatus result)
{
const auto output = "{\"status\": \"" + JsonUtil::escapeJSONValue(name(result)) + "\"}\n";
const auto output = "{\"status\": \"" + JsonUtil::escapeJSONValue(nameShort(result)) + "\"}\n";

http::Response jsonResponse(http::StatusCode::OK);
FileServerRequestHandler::hstsHeaders(jsonResponse);
Expand All @@ -1212,7 +1212,7 @@ bool ClientRequestDispatcher::handleWopiAccessCheckRequest(const Poco::Net::HTTP
jsonResponse.set("X-Content-Type-Options", "nosniff");

socket->sendAndShutdown(jsonResponse);
LOG_INF("Wopi Access Check request, result" << name(result));
LOG_INF("Wopi Access Check request, result" << nameShort(result));
};

if (scheme.empty())
Expand Down

0 comments on commit 90c664f

Please sign in to comment.