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 | ||
| The site's pages run only their own scripts: a nonce policy, nosniff, a referrer policy and no framing | 3 | import { contentDisposition } from "./content-safety"; |
| 4 | ||
| Merge Actions runs: summaries, attempts and re-runs, graceful cancel, log downloads, badges (actions 0009) | 5 | export 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 | ||
| 9 | export function attachment(body: BodyInit, type: string, file: string): Response { | |
| 10 | return new Response(body, { | |
| 11 | headers: { | |
| 12 | "content-type": type, | |
| The site's pages run only their own scripts: a nonce policy, nosniff, a referrer policy and no framing | 13 | "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.