diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-14 10:01:43 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-14 10:01:43 +0300 |
| commit | 4d9004ab31a6064af741fbb73758bd8844964c6f (patch) | |
| tree | 38a7f09840b6cd8774ba5b4ce24b373d4cc1de26 /internal/daemon/daemon.go | |
| parent | 385cc685ab8f5312225342c66d29aaa3bf008a45 (diff) | |
z2: HTTP report query aliases and Gemtext Content-Type
Accept Category, Metric, and OutputFormat as alternate query keys
alongside category, metric, output-format. Serve Gemtext reports
with text/gemini; assert Content-Type in daemon tests.
Builds on y2 daemon GET /report reusing ParseReportQuery and
WriteReports.
Made-with: Cursor
Diffstat (limited to 'internal/daemon/daemon.go')
| -rw-r--r-- | internal/daemon/daemon.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/daemon/daemon.go b/internal/daemon/daemon.go index 4e2402f..a4b1a3e 100644 --- a/internal/daemon/daemon.go +++ b/internal/daemon/daemon.go @@ -101,6 +101,8 @@ func reportContentType(f goprecords.OutputFormat) string { switch f { case goprecords.FormatMarkdown: return "text/markdown; charset=utf-8" + case goprecords.FormatGemtext: + return "text/gemini; charset=utf-8" default: return "text/plain; charset=utf-8" } |
