summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2023-08-19 09:59:58 +0200
committerGravatar default2023-08-19 09:59:58 +0200
commitdae2e406d633ba32f2660100ef417ec13726765c (patch)
treef0fc2ee7f826907665ff883cd205d1f355030a2c /html.c
parentstatic_get() and history_get() both share the same code. (diff)
downloadsnac2-dae2e406d633ba32f2660100ef417ec13726765c.tar.gz
snac2-dae2e406d633ba32f2660100ef417ec13726765c.tar.xz
snac2-dae2e406d633ba32f2660100ef417ec13726765c.zip
history_add() now creates an etag.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 11c1918..2b690e9 100644
--- a/html.c
+++ b/html.c
@@ -1891,7 +1891,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
1891 status = 200; 1891 status = 200;
1892 1892
1893 if (save) 1893 if (save)
1894 history_add(&snac, h, *body, *b_size); 1894 history_add(&snac, h, *body, *b_size, etag);
1895 } 1895 }
1896 } 1896 }
1897 else 1897 else
@@ -1922,7 +1922,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
1922 status = 200; 1922 status = 200;
1923 1923
1924 if (save) 1924 if (save)
1925 history_add(&snac, "timeline.html_", *body, *b_size); 1925 history_add(&snac, "timeline.html_", *body, *b_size, etag);
1926 } 1926 }
1927 } 1927 }
1928 } 1928 }