diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-01-22 14:09:39 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-01-22 14:09:39 +0000 |
| commit | 06a52cad02bec8740eaaf357f3404d241136f830 (patch) | |
| tree | 440492a6602b15b7d74e02fc7d10023dab566049 /src/HttpServerCommand.cc | |
| parent | 5d8864caedd849ed98fbdb86282124b2b47e6090 (diff) | |
2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
aria2 now returns gzip compressed XML-RPC response if XML-RPC
client accepts gzip content encoding.
* src/A2STR.cc
* src/A2STR.h
* src/GZipEncoder.cc
* src/GZipEncoder.h
* src/HttpHeader.cc
* src/HttpHeader.h
* src/HttpServer.cc
* src/HttpServer.h
* src/HttpServerBodyCommand.cc
* src/HttpServerCommand.cc
* src/Makefile.am
* src/XmlRpcResponse.cc
* src/XmlRpcResponse.h
* test/GZipEncoderTest.cc
* test/Makefile.am
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, |
