From: Michael Wallner Date: Sun, 6 Nov 2011 15:30:24 +0000 (+0000) Subject: ignore the length of an env request header X-Git-Tag: DEV_2-before-client~84 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=a5bf469d59f8b88f00a8497599fd6388165af735 ignore the length of an env request header --- diff --git a/php_http_env_response.c b/php_http_env_response.c index cc739df..0d47904 100644 --- a/php_http_env_response.c +++ b/php_http_env_response.c @@ -86,7 +86,7 @@ PHP_HTTP_API php_http_cache_status_t php_http_env_is_response_cached_by_etag(zva char *header, *etag; zval *zetag, *zbody = NULL; - if ( !(header = php_http_env_get_request_header(header_str, header_len TSRMLS_CC)) + if ( !(header = php_http_env_get_request_header(header_str, header_len, NULL TSRMLS_CC)) || !(zbody = get_option(options, ZEND_STRL("body") TSRMLS_CC)) || !(Z_TYPE_P(zbody) == IS_OBJECT) || !instanceof_function(Z_OBJCE_P(zbody), php_http_message_body_class_entry TSRMLS_CC) @@ -136,7 +136,7 @@ PHP_HTTP_API php_http_cache_status_t php_http_env_is_response_cached_by_last_mod time_t ums, lm = 0; zval *zbody = NULL, *zlm; - if ( !(header = php_http_env_get_request_header(header_str, header_len TSRMLS_CC)) + if ( !(header = php_http_env_get_request_header(header_str, header_len, NULL TSRMLS_CC)) || !(zbody = get_option(options, ZEND_STRL("body") TSRMLS_CC)) || !(Z_TYPE_P(zbody) == IS_OBJECT) || !instanceof_function(Z_OBJCE_P(zbody), php_http_message_body_class_entry TSRMLS_CC)