summaryrefslogtreecommitdiff
path: root/snac.h
diff options
context:
space:
mode:
authorGravatar default2024-11-07 19:42:02 +0100
committerGravatar default2024-11-07 19:42:02 +0100
commit0f8ade8c6050d61d1a9bf0522ac087eaf41eab14 (patch)
tree9eff0dbadcf4ca0807fe69f5a1f1ed8cdd20d3f9 /snac.h
parentAlso use the proxy in replace_shortnames(). (diff)
downloadsnac2-0f8ade8c6050d61d1a9bf0522ac087eaf41eab14.tar.gz
snac2-0f8ade8c6050d61d1a9bf0522ac087eaf41eab14.tar.xz
snac2-0f8ade8c6050d61d1a9bf0522ac087eaf41eab14.zip
Propagate 'last-modified' and 'etag' fields while proxying.
But does it work?
Diffstat (limited to 'snac.h')
-rw-r--r--snac.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/snac.h b/snac.h
index 27c3d68..3c3b044 100644
--- a/snac.h
+++ b/snac.h
@@ -349,7 +349,9 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
349 const char *title, const char *page, int utl, const char *error); 349 const char *title, const char *page, int utl, const char *error);
350 350
351int html_get_handler(const xs_dict *req, const char *q_path, 351int html_get_handler(const xs_dict *req, const char *q_path,
352 char **body, int *b_size, char **ctype, xs_str **etag); 352 char **body, int *b_size, char **ctype,
353 xs_str **etag, xs_str **last_modified);
354
353int html_post_handler(const xs_dict *req, const char *q_path, 355int html_post_handler(const xs_dict *req, const char *q_path,
354 char *payload, int p_size, 356 char *payload, int p_size,
355 char **body, int *b_size, char **ctype); 357 char **body, int *b_size, char **ctype);