Monorepo for Tangled tangled.org
2

Configure Feed

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

appview/repo: add logs for large blob content length check

Signed-off-by: Seongmin Lee <git@boltless.me>

author
Seongmin Lee
date (Jun 17, 2026, 11:13 PM +0900) commit 0652088a parent d2071613 change-id rrpkmtts
+5
+5
appview/repo/blob.go
··· 143 143 }, nil 144 144 } 145 145 146 + // skip large blobs 147 + if blobResp.ContentLength > maxBlobSize || blobResp.ContentLength < 0 { 148 + l.Error("large blob:", "ContentLength", blobResp.ContentLength, "maxBlobSize", maxBlobSize) 149 + } 150 + 146 151 content, err := io.ReadAll(io.LimitReader(blobResp.Body, maxBlobSize+1)) 147 152 if err != nil { 148 153 return models.BlobView{}, err