projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
45e3585
)
fix caching bug, thankt to rrichards
author
Michael Wallner
<mike@php.net>
Fri, 21 Aug 2009 08:30:24 +0000
(08:30 +0000)
committer
Michael Wallner
<mike@php.net>
Fri, 21 Aug 2009 08:30:24 +0000
(08:30 +0000)
http_send_api.c
patch
|
blob
|
history
diff --git
a/http_send_api.c
b/http_send_api.c
index 4f97dac1c07d7e8471688bf3f21a78a9fc813957..26bf22d3e0a00694ce1b71ecfb3b1aa8bb7fc065 100644
(file)
--- a/
http_send_api.c
+++ b/
http_send_api.c
@@
-478,7
+478,7
@@
PHP_HTTP_API STATUS _http_send_ex(const void *data_ptr, size_t data_size, http_s
}
/* send 304 Not Modified if last modified matches */
}
/* send 304 Not Modified if last modified matches */
- if (!no_cache && http_match_last_modified("HTTP_IF_MODIFIED_SINCE", HTTP_G->send.last_modified)) {
+ if (!no_cache &&
HTTP_G->send.last_modified &&
http_match_last_modified("HTTP_IF_MODIFIED_SINCE", HTTP_G->send.last_modified)) {
char *sent_header = NULL;
http_send_last_modified_ex(HTTP_G->send.last_modified, &sent_header);
return http_exit_ex(304, sent_header, NULL, 0);
char *sent_header = NULL;
http_send_last_modified_ex(HTTP_G->send.last_modified, &sent_header);
return http_exit_ex(304, sent_header, NULL, 0);