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:
16bf75d
)
only consider 2xx cacheable
author
Michael Wallner
<mike@php.net>
Thu, 7 May 2015 20:18:35 +0000
(22:18 +0200)
committer
Michael Wallner
<mike@php.net>
Thu, 7 May 2015 20:18:35 +0000
(22:18 +0200)
php_http_env_response.c
patch
|
blob
|
history
diff --git
a/php_http_env_response.c
b/php_http_env_response.c
index 67a6d5830e4bf4d07b63b7db7b5b1df4b108050c..be7effa3eaf1b4859d447fbc9821171180a09e15 100644
(file)
--- a/
php_http_env_response.c
+++ b/
php_http_env_response.c
@@
-229,8
+229,9
@@
php_http_cache_status_t php_http_env_is_response_cached_by_last_modified(zval *o
static zend_bool php_http_env_response_is_cacheable(php_http_env_response_t *r, php_http_message_t *request)
{
TSRMLS_FETCH_FROM_CTX(r->ts);
+ long status = r->ops->get_status(r);
- if (
r->ops->get_status(r) >= 400
) {
+ if (
status && status / 100 != 2
) {
return 0;
}