* Sanity check for 304 Not Modified responses, as per RFC2616 Section 10.3.5. */
| 775 | * Sanity check for 304 Not Modified responses, as per RFC2616 Section 10.3.5. |
| 776 | */ |
| 777 | static 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 |
no test coverage detected