diff options
Diffstat (limited to 'src/HttpServerCommand.cc')
| -rw-r--r-- | src/HttpServerCommand.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc index 03edd761..4a6bec49 100644 --- a/src/HttpServerCommand.cc +++ b/src/HttpServerCommand.cc @@ -61,6 +61,11 @@ HttpServerCommand::HttpServerCommand(int32_t cuid, DownloadEngine* e, _e->addSocketForReadCheck(_socket, this); _httpServer->setUsernamePassword(_e->option->get(PREF_XML_RPC_USER), _e->option->get(PREF_XML_RPC_PASSWD)); +#ifdef HAVE_LIBZ + _httpServer->enableGZip(); +#else // !HAVE_LIBZ + _httpServer->disableGZip(); +#endif // !HAVE_LIBZ } HttpServerCommand::HttpServerCommand(int32_t cuid, |
