aboutsummaryrefslogtreecommitdiff
path: root/git_ref.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-03 18:04:16 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-03 18:04:16 +0800
commit564ceda1247f444bc7c20c6be01cf71f62c549f1 (patch)
tree058c8eb38c1b717ac2453b21aea17e899a9a5b7c /git_ref.go
parentman: Update lindenii-forge.5 for daemon_path (diff)
downloadforge-564ceda1247f444bc7c20c6be01cf71f62c549f1.tar.gz
forge-564ceda1247f444bc7c20c6be01cf71f62c549f1.tar.zst
forge-564ceda1247f444bc7c20c6be01cf71f62c549f1.zip
HTTP: Serve raw blobs with application/octet-stream
So we don't get XSSed. Might be useful to use heuristics to detect whether it's displayable as text/plain, though. Fixes: https://todo.sr.ht/~runxiyu/forge/20#event-411435
Diffstat (limited to 'git_ref.go')
0 files changed, 0 insertions, 0 deletions