diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-20 00:35:09 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-20 00:35:09 -0500 |
| commit | f07efbb6fc7a63055a8424799ce03a5f37539873 (patch) | |
| tree | ff5983b2cae4cc9b8f2f346a47cb3eb23b2f79ae /cmd/web | |
| parent | cbfd82db8a20be32ffa82a1afa860729f3097de6 (diff) | |
| download | steam-export-dev-wip.tar.gz steam-export-dev-wip.tar.xz | |
wipdev-wip
Diffstat (limited to 'cmd/web')
| -rw-r--r-- | cmd/web/handlers.go | 2 |
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) |
