summaryrefslogtreecommitdiffstats
path: root/apps/lib
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-05-17 18:16:28 +1000
committerPauli <pauli@openssl.org>2021-05-18 13:24:41 +1000
commita94d62ab23e95630c156d00342ee9c3cf2e59515 (patch)
treebf42174d1d18a563157a32eb500fa2f1c7495bb3 /apps/lib
parent4547a71930a27fca9ae62c38962d6dc67ee0b4bf (diff)
apps: use else if when checking for headers in the http server code
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/15300)
Diffstat (limited to 'apps/lib')
-rw-r--r--apps/lib/http_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/lib/http_server.c b/apps/lib/http_server.c
index 0fbf991388..e7e84fa4c5 100644
--- a/apps/lib/http_server.c
+++ b/apps/lib/http_server.c
@@ -457,7 +457,7 @@ int http_server_get_asn1_req(const ASN1_ITEM *it, ASN1_VALUE **preq,
if (found_keep_alive != NULL && strcasecmp(key, "Connection") == 0) {
if (strcasecmp(value, "keep-alive") == 0)
*found_keep_alive = 1;
- if (strcasecmp(value, "close") == 0)
+ else if (strcasecmp(value, "close") == 0)
*found_keep_alive = 0;
}
}