mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 03:31:39 +00:00
ipn/localapi: serve files with application/octet-stream Content-Type
Updates tailscale/corp#7948 Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: I5f570c04974598c7abae4017e4a7a0f63492c87c
This commit is contained in:
parent
4fc8538e2f
commit
4caca8619e
@ -687,6 +687,7 @@ func (h *Handler) serveFiles(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
defer rc.Close()
|
defer rc.Close()
|
||||||
w.Header().Set("Content-Length", fmt.Sprint(size))
|
w.Header().Set("Content-Length", fmt.Sprint(size))
|
||||||
|
w.Header().Set("Content-Type", "application/octet-stream")
|
||||||
io.Copy(w, rc)
|
io.Copy(w, rc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user