Web server: Send 404 as appropriate

This commit is contained in:
Henrik Rydgård
2023-12-29 11:21:14 +01:00
parent c97d5ef23f
commit 2160abb5ec
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -178,6 +178,7 @@ bool Connection::Connect(int maxTries, double timeout, bool *cancelConnect) {
selectResult = select(maxfd, nullptr, &fds, nullptr, &tv);
if (cancelConnect && *cancelConnect) {
WARN_LOG(HTTP, "connect(%d): cancelled (1)", sock);
break;
}
}
@@ -196,6 +197,7 @@ bool Connection::Connect(int maxTries, double timeout, bool *cancelConnect) {
}
if (cancelConnect && *cancelConnect) {
WARN_LOG(HTTP, "connect(%d): cancelled (2)", sock);
break;
}