Skip to content

Commit b5a4d25

Browse files
author
Vasyl Vavrychuk
committed
Revert "Fixed mongoose lying to client about keep alive"
This reverts commit 48e5793.
1 parent 5cebfe5 commit b5a4d25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/third_party/mongoose/mongoose.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,7 @@ static int should_keep_alive(const struct mg_connection *conn) {
791791
}
792792

793793
static const char *suggest_connection_header(const struct mg_connection *conn) {
794-
int keep_alive_enabled = !strcmp(conn->ctx->config[ENABLE_KEEP_ALIVE], "yes");
795-
return keep_alive_enabled && should_keep_alive(conn) ? "keep-alive" : "close";
794+
return should_keep_alive(conn) ? "keep-alive" : "close";
796795
}
797796

798797
static void send_http_error(struct mg_connection *conn, int status,

0 commit comments

Comments
 (0)