summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/http.cc b/methods/http.cc
index b076e59cc..f8faa0cf8 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -655,10 +655,10 @@ bool HttpServerState::Go(bool ToFile, FileFd * const File)
return _error->Errno("write",_("Error writing to output file"));
}
- if (ExpectedSize > 0 && File && File->Tell() > ExpectedSize)
+ if (MaximumSize > 0 && File && File->Tell() > MaximumSize)
{
return _error->Error("Writing more data than expected (%llu > %llu)",
- File->Tell(), ExpectedSize);
+ File->Tell(), MaximumSize);
}
// Handle commands from APT