diff --git a/ixwebsocket/IXHttpServer.cpp b/ixwebsocket/IXHttpServer.cpp index 78378b06..e2e370f9 100644 --- a/ixwebsocket/IXHttpServer.cpp +++ b/ixwebsocket/IXHttpServer.cpp @@ -164,7 +164,7 @@ namespace ix std::string content = res.second; std::string acceptEncoding = request->headers["Accept-encoding"]; - if (acceptEncoding == "gzip" or acceptEncoding == "*") + if (acceptEncoding == "gzip" || acceptEncoding == "*") { content = gzipCompress(content); }