summaryrefslogtreecommitdiff
path: root/sapi/cli/php_http_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/cli/php_http_parser.c')
-rw-r--r--sapi/cli/php_http_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_http_parser.c b/sapi/cli/php_http_parser.c
index 6d764b6c0d..bb1c4924a0 100644
--- a/sapi/cli/php_http_parser.c
+++ b/sapi/cli/php_http_parser.c
@@ -1315,7 +1315,7 @@ size_t php_http_parser_execute (php_http_parser *parser,
nread = 0;
- if (parser->flags & F_UPGRADE || parser->method == PHP_HTTP_CONNECT) {
+ if ((parser->flags & F_UPGRADE) || parser->method == PHP_HTTP_CONNECT) {
parser->upgrade = 1;
}