mirror of https://github.com/aria2/aria2
2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed compile error without zlib * src/HttpResponseCommand.ccpull/1/head
parent
6b6e6bc495
commit
1906832f43
|
@ -1,3 +1,8 @@
|
||||||
|
2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Fixed compile error without zlib
|
||||||
|
* src/HttpResponseCommand.cc
|
||||||
|
|
||||||
2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Removed ChunkedDecoder. Moved GZipDecodingStreamFilter to under
|
Removed ChunkedDecoder. Moved GZipDecodingStreamFilter to under
|
||||||
|
|
|
@ -72,8 +72,10 @@
|
||||||
#include "StreamFilter.h"
|
#include "StreamFilter.h"
|
||||||
#include "SinkStreamFilter.h"
|
#include "SinkStreamFilter.h"
|
||||||
#include "ChunkedDecodingStreamFilter.h"
|
#include "ChunkedDecodingStreamFilter.h"
|
||||||
#include "GZipDecodingStreamFilter.h"
|
|
||||||
#include "uri.h"
|
#include "uri.h"
|
||||||
|
#ifdef HAVE_LIBZ
|
||||||
|
# include "GZipDecodingStreamFilter.h"
|
||||||
|
#endif // HAVE_LIBZ
|
||||||
|
|
||||||
namespace aria2 {
|
namespace aria2 {
|
||||||
|
|
||||||
|
@ -459,6 +461,7 @@ bool HttpResponseCommand::skipResponseBody
|
||||||
static bool decideFileAllocation
|
static bool decideFileAllocation
|
||||||
(const SharedHandle<StreamFilter>& filter)
|
(const SharedHandle<StreamFilter>& filter)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_LIBZ
|
||||||
for(SharedHandle<StreamFilter> f = filter; !f.isNull(); f = f->getDelegate()){
|
for(SharedHandle<StreamFilter> f = filter; !f.isNull(); f = f->getDelegate()){
|
||||||
// Since the compressed file's length are returned in the response header
|
// Since the compressed file's length are returned in the response header
|
||||||
// and the decompressed file size is unknown at this point, disable file
|
// and the decompressed file size is unknown at this point, disable file
|
||||||
|
@ -467,6 +470,7 @@ static bool decideFileAllocation
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // HAVE_LIBZ
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue