Skip to content

Commit 0728d16

Browse files
committed
Applied Copilot suggestions
1 parent dcdf369 commit 0728d16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/src/HttpServer.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,7 @@ void HttpServer::requestPreHandling(const HttpRequestImplPtr &req, Pack &&pack)
578578
{
579579
// Handle CORS preflight request, except when custom handling is desired
580580
if ((req->method() == Options) &&
581-
(!req->attributes()->find("customCORShandling") ||
582-
!req->attributes()->get<bool>("customCORShandling")))
581+
!req->attributes()->get<bool>("customCORShandling"))
583582
{
584583
handleHttpOptions(req,
585584
*pack.binderPtr->corsMethods_,

0 commit comments

Comments
 (0)