* [PATCH 2/2] httpd: add CSV download link to /each/$MIN HTML
2023-01-09 6:21 5% [PATCH 0/2] refining the httpd interface Eric Wong
@ 2023-01-09 6:21 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-01-09 6:21 UTC (permalink / raw)
To: mwrap-public
This makes the .CSV download discoverable so I don't have
to document it in the manpage \o/
---
ext/mwrap/httpd.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ext/mwrap/httpd.h b/ext/mwrap/httpd.h
index fe4fe2f..ef4d83c 100644
--- a/ext/mwrap/httpd.h
+++ b/ext/mwrap/httpd.h
@@ -654,7 +654,8 @@ static enum mw_qev each_gt(struct mw_h1 *h1, struct mw_h1req *h1r,
fprintf(fp, "<html><head><title>mwrap each >%lu"
"</title></head><body><p>mwrap each >%lu "
"(change `%lu' in URL to adjust filtering) - "
- "MWRAP=bt:%u", min, min, min, depth);
+ "MWRAP=bt:%u <a href=\"%lu.csv\">.csv</a>",
+ min, min, min, depth, min);
show_stats(fp);
/* need borders to distinguish multi-level traces */
if (depth)
^ permalink raw reply related [relevance 7%]
* [PATCH 0/2] refining the httpd interface
@ 2023-01-09 6:21 5% Eric Wong
2023-01-09 6:21 7% ` [PATCH 2/2] httpd: add CSV download link to /each/$MIN HTML Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-01-09 6:21 UTC (permalink / raw)
To: mwrap-public
Being edumacational :P
Eric Wong (2):
httpd: add notes about arenas and object heaps
httpd: add CSV download link to /each/$MIN HTML
ext/mwrap/httpd.h | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-01-09 6:21 5% [PATCH 0/2] refining the httpd interface Eric Wong
2023-01-09 6:21 7% ` [PATCH 2/2] httpd: add CSV download link to /each/$MIN HTML Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/mwrap.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).