diff options
| author | 2023-08-19 09:59:58 +0200 | |
|---|---|---|
| committer | 2023-08-19 09:59:58 +0200 | |
| commit | dae2e406d633ba32f2660100ef417ec13726765c (patch) | |
| tree | f0fc2ee7f826907665ff883cd205d1f355030a2c /html.c | |
| parent | static_get() and history_get() both share the same code. (diff) | |
| download | snac2-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | } |