]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
Send "Fail-Reason: MaximumSizeExceeded" from the method
[apt.git] / methods / http.cc
index f8faa0cf8cbfff41be3a4867c3cc26936aa97a0b..c00b439b723a1705d7ba82ca14038e72412623c4 100644 (file)
@@ -657,6 +657,7 @@ bool HttpServerState::Go(bool ToFile, FileFd * const File)
 
    if (MaximumSize > 0 && File && File->Tell() > MaximumSize)
    {
+      Owner->SetFailReason("MaximumSizeExceeded");
       return _error->Error("Writing more data than expected (%llu > %llu)",
                            File->Tell(), MaximumSize);
    }