Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

appview/repo: avoid copying body in blob responses

Signed-off-by: oppiliappan <me@oppi.li>

author
oppiliappan
date (Mar 30, 2026, 5:31 AM +0100) commit 9a08b126 parent 56f8d335 change-id sspnnynp
+1 -1
+1 -1
appview/repo/blob.go
··· 181 181 182 182 if resp.StatusCode != http.StatusOK { 183 183 l.Error("knotserver returned non-OK status for raw blob", "url", blobURL, "statuscode", resp.StatusCode) 184 + w.Header().Set("Content-Type", "text/plain; charset=utf-8") 184 185 w.WriteHeader(resp.StatusCode) 185 - _, _ = io.Copy(w, resp.Body) 186 186 return 187 187 } 188 188