From ff708230bde32c7df64d85f98d1cd5c351cdc8f1 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 4 May 2021 23:14:35 +0200 Subject: [PATCH] Fix FastCGI encoding (really really) --- src/lib/fastcgi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/fastcgi.c b/src/lib/fastcgi.c index 6474ec0..8e36c48 100644 --- a/src/lib/fastcgi.c +++ b/src/lib/fastcgi.c @@ -396,16 +396,16 @@ int fastcgi_send(fastcgi_conn *conn, sock *client, int flags) { z_stream gz_state; BrotliEncoderState *br_state = NULL; if (flags & FASTCGI_COMPRESS_BR) { - flags &= !FASTCGI_COMPRESS_GZ; + flags &= ~FASTCGI_COMPRESS_GZ; if (brotli_init(&br_state) != 0) { print(ERR_STR "Unable to init brotli: %s" CLR_STR, strerror(errno)); - flags &= !FASTCGI_COMPRESS_BR; + flags &= ~FASTCGI_COMPRESS_BR; } } else if (flags & FASTCGI_COMPRESS_GZ) { - flags &= !FASTCGI_COMPRESS_BR; + flags &= ~FASTCGI_COMPRESS_BR; if (gzip_init(&gz_state) != 0) { print(ERR_STR "Unable to init gzip: %s" CLR_STR, strerror(errno)); - flags &= !FASTCGI_COMPRESS_GZ; + flags &= ~FASTCGI_COMPRESS_GZ; } }