We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cebfe5 commit b5a4d25Copy full SHA for b5a4d25
src/third_party/mongoose/mongoose.c
@@ -791,8 +791,7 @@ static int should_keep_alive(const struct mg_connection *conn) {
791
}
792
793
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";
+ return should_keep_alive(conn) ? "keep-alive" : "close";
796
797
798
static void send_http_error(struct mg_connection *conn, int status,
0 commit comments