projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- simplify http_send_header API
[m6w6/ext-http]
/
http_cache_api.c
diff --git
a/http_cache_api.c
b/http_cache_api.c
index 56ca0f61a3f045587d6e455347fa2570e435a6ca..43540b39de06a17d3bbf125e77cb51eeb7748cdd 100644
(file)
--- a/
http_cache_api.c
+++ b/
http_cache_api.c
@@
-237,7
+237,7
@@
PHP_HTTP_API void _http_ob_etaghandler(char *output, uint output_len,
/* just do that if desired */
if (HTTP_G(etag).started) {
make_digest(etag, digest);
/* just do that if desired */
if (HTTP_G(etag).started) {
make_digest(etag, digest);
- http_send_
header("Cache-Control: " HTTP_DEFAULT_CACHECONTROL
);
+ http_send_
cache_control(HTTP_DEFAULT_CACHECONTROL, lenof(HTTP_DEFAULT_CACHECONTROL)
);
http_send_etag(etag, 32);
if (http_match_etag("HTTP_IF_NONE_MATCH", etag)) {
http_send_etag(etag, 32);
if (http_match_etag("HTTP_IF_NONE_MATCH", etag)) {