Skip to content
17 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Merge Actions runs: summaries, attempts and re-runs, graceful cancel, log downloads, badges (actions 0009)1/** Answers for the log downloads: a file to save, or why there is none. */
2
Merge g1tusercontent.com: registry answers run nothing in a browser, the site's pages run only their own scripts, repository files and avatars on their own origin, raw files rate limited per address3import { contentDisposition } from "./content-safety";
4
Merge Actions runs: summaries, attempts and re-runs, graceful cancel, log downloads, badges (actions 0009)5export function refused(status: number, message: string): Response {
6 return new Response(`${message}\n`, { status, headers: { "content-type": "text/plain; charset=utf-8", "cache-control": "no-store" } });
7}
8
9export function attachment(body: BodyInit, type: string, file: string): Response {
10 return new Response(body, {
11 headers: {
12 "content-type": type,
Merge g1tusercontent.com: registry answers run nothing in a browser, the site's pages run only their own scripts, repository files and avatars on their own origin, raw files rate limited per address13 "content-disposition": contentDisposition(file),
Merge Actions runs: summaries, attempts and re-runs, graceful cancel, log downloads, badges (actions 0009)14 "cache-control": "no-store",
15 },
16 });
17}

This file's history is long; its oldest lines are credited to the oldest commit read.