diff options
| author | 2024-11-07 19:42:02 +0100 | |
|---|---|---|
| committer | 2024-11-07 19:42:02 +0100 | |
| commit | 0f8ade8c6050d61d1a9bf0522ac087eaf41eab14 (patch) | |
| tree | 9eff0dbadcf4ca0807fe69f5a1f1ed8cdd20d3f9 /snac.h | |
| parent | Also use the proxy in replace_shortnames(). (diff) | |
| download | snac2-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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 | ||
| 351 | int html_get_handler(const xs_dict *req, const char *q_path, | 351 | int 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 | |||
| 353 | int html_post_handler(const xs_dict *req, const char *q_path, | 355 | int 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); |