Added comment; fixed uninitialized read [#CLICKHOUSE-20227].

This commit is contained in:
Alexey Milovidov 2017-01-30 01:53:29 +03:00
parent 7f73f91705
commit 3552de49ea

View File

@ -36,13 +36,17 @@ namespace ErrorCodes
///
/// Additionally, supports HTTP response compression (in this case corresponding Content-Encoding
/// header will be set).
///
/// Also this class write and flush special X-ClickHouse-Progress HTTP headers
/// if no data was sent at the time of progress notification.
/// This allows to implement progress bar in HTTP clients.
class WriteBufferFromHTTPServerResponse : public BufferWithOwnMemory<WriteBuffer>
{
private:
Poco::Net::HTTPServerResponse & response;
bool add_cors_header;
bool compress;
bool add_cors_header = false;
bool compress = false;
ZlibCompressionMethod compression_method;
int compression_level = Z_DEFAULT_COMPRESSION;