From f07efbb6fc7a63055a8424799ce03a5f37539873 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Fri, 20 Jan 2023 00:35:09 -0500 Subject: wip --- cmd/web/handlers.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd') diff --git a/cmd/web/handlers.go b/cmd/web/handlers.go index 182b100..a8db3bc 100644 --- a/cmd/web/handlers.go +++ b/cmd/web/handlers.go @@ -83,6 +83,8 @@ func (a *App) HandleDownload(w http.ResponseWriter, r *http.Request) { w.Header().Add("Content-type", "application/tar") w.Header().Add("Estimated-size", fmt.Sprintf("%d", g.Size)) + // Content-length is not being sent down intentionally as we do not + // know the exact size Logger.Printf("Client %s is downloading: %s", r.RemoteAddr, game) -- cgit v1.2.3