diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-03 18:04:16 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-03 18:04:16 +0800 |
commit | 564ceda1247f444bc7c20c6be01cf71f62c549f1 (patch) | |
tree | 058c8eb38c1b717ac2453b21aea17e899a9a5b7c /ssh_server.go | |
parent | man: Update lindenii-forge.5 for daemon_path (diff) | |
download | forge-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 'ssh_server.go')
0 files changed, 0 insertions, 0 deletions