MCPcopy Create free account
hub / github.com/apache/httpd / cache_header_cmp

Function cache_header_cmp

modules/cache/mod_cache.c:777–787  ·  view source on GitHub ↗

* Sanity check for 304 Not Modified responses, as per RFC2616 Section 10.3.5. */

Source from the content-addressed store, hash-verified

775 * Sanity check for 304 Not Modified responses, as per RFC2616 Section 10.3.5.
776 */
777static int cache_header_cmp(apr_pool_t *pool, apr_table_t *left,
778 apr_table_t *right, const char *key)
779{
780 const char *h1, *h2;
781
782 if ((h1 = cache_table_getm(pool, left, key))
783 && (h2 = cache_table_getm(pool, right, key)) && (strcmp(h1, h2))) {
784 return 1;
785 }
786 return 0;
787}
788
789/*
790 * CACHE_SAVE filter

Callers 1

cache_save_filterFunction · 0.85

Calls 1

cache_table_getmFunction · 0.85

Tested by

no test coverage detected