Bugfix for FastCGI compression

This commit is contained in:
2020-12-27 20:27:25 +01:00
parent c6fbf25192
commit be4475c336

View File

@ -468,7 +468,7 @@ int fastcgi_send(fastcgi_conn *conn, sock *client, int flags) {
if (flags & FASTCGI_CHUNKED) send(client->socket, "\r\n", 2, 0);
}
}
} while (!(flags & FASTCGI_COMPRESS) || strm.avail_out == 0);
} while ((flags & FASTCGI_COMPRESS) && strm.avail_out == 0);
if (finish_comp) goto finish;
} else {
fprintf(stderr, ERR_STR "Unknown FastCGI type: %i" CLR_STR "\n", header.type);