aboutsummaryrefslogtreecommitdiff
path: root/cmd/web
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2023-01-20 00:35:09 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2023-01-20 00:35:09 -0500
commitf07efbb6fc7a63055a8424799ce03a5f37539873 (patch)
treeff5983b2cae4cc9b8f2f346a47cb3eb23b2f79ae /cmd/web
parentcbfd82db8a20be32ffa82a1afa860729f3097de6 (diff)
downloadsteam-export-dev-wip.tar.gz
steam-export-dev-wip.tar.xz
Diffstat (limited to 'cmd/web')
-rw-r--r--cmd/web/handlers.go2
1 files changed, 2 insertions, 0 deletions
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)