Skip to content

Commit

Permalink
Small code improvments
Browse files Browse the repository at this point in the history
Signed-off-by: Méven Car <meven.car@collabora.com>
Change-Id: I46bbaf635204629602a69914858efe5dae4ca262
  • Loading branch information
meven committed Dec 19, 2024
1 parent 7656759 commit b2e464e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wsd/ClientRequestDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ bool ClientRequestDispatcher::handleWopiAccessCheckRequest(const Poco::Net::HTTP

LOG_TRC("Wopi Access Check request scheme: " << scheme << " " << port);

auto sendResult = [this, socket](CheckStatus result)
const auto sendResult = [this, socket](CheckStatus result)
{
Poco::JSON::Object::Ptr status = new Poco::JSON::Object;
status->set("status", name(result));
Expand Down Expand Up @@ -1301,9 +1301,9 @@ bool ClientRequestDispatcher::handleWopiAccessCheckRequest(const Poco::Net::HTTP

const auto httpResponse = probeSession->response();
const auto responseState = httpResponse->state();
LOG_DBG("Wopi Access Check: got response" << responseState
<< httpResponse->statusCode()
<< lastErrno);
LOG_DBG("Wopi Access Check: got response state: " << responseState << " "
<< ", response status code: " <<httpResponse->statusCode() << " "
<< ", last errno: " << lastErrno);

if (responseState != http::Response::State::Complete)
{
Expand Down

0 comments on commit b2e464e

Please sign in to comment.