mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-18 17:12:14 +11:00
🐎 references rather then copy
This commit is contained in:
parent
46b48b1d6f
commit
29044d697c
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ void AdminFilter::doFilter(const HttpRequestPtr &req,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto resp = HttpResponse::newHttpJsonResponse("Invalid Credentials");
|
const auto &resp = HttpResponse::newHttpJsonResponse("Invalid Credentials");
|
||||||
resp->setStatusCode(k401Unauthorized);
|
resp->setStatusCode(k401Unauthorized);
|
||||||
fcb(resp);
|
fcb(resp);
|
||||||
}
|
}
|
||||||
|
|
@ -30,7 +30,7 @@ void UserFilter::doFilter(const HttpRequestPtr &req,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto resp = HttpResponse::newHttpJsonResponse("Invalid Credentials");
|
const auto &resp = HttpResponse::newHttpJsonResponse("Invalid Credentials");
|
||||||
resp->setStatusCode(k401Unauthorized);
|
resp->setStatusCode(k401Unauthorized);
|
||||||
fcb(resp);
|
fcb(resp);
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue