projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
- override INI(http.force_exit) when calling http_exit() in ob_etaghandler
[m6w6/ext-http]
/
http_cache_api.c
diff --git
a/http_cache_api.c
b/http_cache_api.c
index 582c3ccd455d764b26fcec0134ec58dff88080ea..832656466972a38be1a69ead9a98e14f798b4fb9 100644
(file)
--- a/
http_cache_api.c
+++ b/
http_cache_api.c
@@
-230,6
+230,8
@@
void _http_ob_etaghandler(char *output, uint output_len,
http_send_etag_ex(etag, strlen(etag), &sent_header);
if (http_match_etag("HTTP_IF_NONE_MATCH", etag)) {
+ /* force exit; ob within ob does not work */
+ HTTP_G->force_exit = 1;
http_exit_ex(304, sent_header, etag, 0);
}