diff --git a/runtime/server/downloads.go b/runtime/server/downloads.go index c2604fcb6d4..64ecf169fc6 100644 --- a/runtime/server/downloads.go +++ b/runtime/server/downloads.go @@ -264,7 +264,7 @@ func (s *Server) downloadHandler(w http.ResponseWriter, req *http.Request) { func (s *Server) resolveExportLimit(base, override int64) int64 { res := base - if override < res { + if override > 0 && override < res { res = override } return res