From 7034f492766da03f4e8e5ad077c551c07786451a Mon Sep 17 00:00:00 2001 From: valenok Date: Tue, 5 Oct 2010 07:08:51 +0100 Subject: [PATCH] should_keep_alive(): using mg_strcasecmp() instead of strcmp() to compare header value --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 669c928f..41524297 100644 --- a/mongoose.c +++ b/mongoose.c @@ -731,7 +731,7 @@ static int should_keep_alive(const struct mg_connection *conn) { const char *http_version = conn->request_info.http_version; const char *header = mg_get_header(conn, "Connection"); return (header == NULL && http_version && !strcmp(http_version, "1.1")) || - (header != NULL && !strcmp(header, "keep-alive")); + (header != NULL && !mg_strcasecmp(header, "keep-alive")); } static const char *suggest_connection_header(const struct mg_connection *conn) {