When compiling with option WTHTTP_WITH_ZLIB
In file \wt-2.1.5\src\http\StaticReply.C we must add next line(in Windows,
posix not tested)
stream_.clear();
in context
if (request.acceptGzipEncoding()) {
std::string gzipPath = path_ + ".gz";
stream_.open(gzipPath.c_str(), std::ios::in | std::ios::binary);
if (stream_) {
path_ = gzipPath;
gzipReply = true;
} else
{
stream_.clear();
stream_.open(path_.c_str(), std::ios::in | std::ios::binary);
}
} else
stream_.open(path_.c_str(), std::ios::in | std::ios::binary);
if (!stream_) {
stockReply = true;
setRelay(ReplyPtr(new StockReply(request, StockReply::not_found,
"", err_root)));
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest