oops missed a version

This commit is contained in:
Adam D. Ruppe 2011-08-25 21:25:01 -04:00
parent 1c9dc91f00
commit 53ff8d3ca6
1 changed files with 2 additions and 0 deletions

2
cgi.d
View File

@ -728,6 +728,7 @@ class Cgi {
if(gzipResponse && acceptsGzip && isAll) { // FIXME: isAll really shouldn't be necessary
// actually gzip the data here
version(with_gzip) {
auto c = new Compress(true); // want gzip
auto data = c.compress(t);
@ -736,6 +737,7 @@ class Cgi {
std.file.write("/tmp/last-item", data);
t = data;
}
}
if(requestMethod != RequestMethod.HEAD && t.length > 0) {