summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/h1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/h1.c b/src/h1.c
index e10ca7db..eabcb414 100644
--- a/src/h1.c
+++ b/src/h1.c
@@ -312,7 +312,9 @@ h1_check_upgrade (request_st * const r, connection * const con)
{
buffer *upgrade = http_header_request_get(r, HTTP_HEADER_UPGRADE,
CONST_STR_LEN("Upgrade"));
- /*if (NULL == upgrade) return 0;*//*(checked by caller)*/
+ #ifdef __COVERITY__
+ if (NULL == upgrade) return 0; /*(checked by caller)*/
+ #endif
buffer * const http_connection =
http_header_request_get(r, HTTP_HEADER_CONNECTION,