From 30fcf42bd7b78bdb3cbf4185f5e8fc376be4b33f Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Sun, 3 Jan 2021 17:31:46 -0800 Subject: [PATCH] Reverts subtractions --- web/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/routes.go b/web/routes.go index 6e64f31e..cdcaa87c 100644 --- a/web/routes.go +++ b/web/routes.go @@ -128,7 +128,7 @@ func (h *handler) downloadLogs(w http.ResponseWriter, r *http.Request) { } now := time.Now() - from := time.Unix(container.Created, 0).Add(-2 * time.Minute) + from := time.Unix(container.Created, 0) w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%v.log.gz", container.ID)) w.Header().Set("Content-Type", "application/octet-stream")