@@ -644,8 +644,8 @@ int cache_check_freshness(cache_handle_t *h, cache_request_rec *cache,
644644 /* make sure we don't stomp on a previous warning */
645645 if ((warn_head == NULL ) ||
646646 ((warn_head != NULL ) && (ap_strstr_c (warn_head , "110" ) == NULL ))) {
647- apr_table_merge (h -> resp_hdrs , "Warning" ,
648- "110 Response is stale" );
647+ apr_table_mergen (h -> resp_hdrs , "Warning" ,
648+ "110 Response is stale" );
649649 }
650650 }
651651
@@ -663,8 +663,8 @@ int cache_check_freshness(cache_handle_t *h, cache_request_rec *cache,
663663 */
664664 if ((warn_head == NULL ) ||
665665 ((warn_head != NULL ) && (ap_strstr_c (warn_head , "113" ) == NULL ))) {
666- apr_table_merge (h -> resp_hdrs , "Warning" ,
667- "113 Heuristic expiration" );
666+ apr_table_mergen (h -> resp_hdrs , "Warning" ,
667+ "113 Heuristic expiration" );
668668 }
669669 }
670670 return 1 ; /* Cache object is fresh (enough) */
@@ -720,8 +720,8 @@ int cache_check_freshness(cache_handle_t *h, cache_request_rec *cache,
720720 warn_head = apr_table_get (h -> resp_hdrs , "Warning" );
721721 if ((warn_head == NULL ) ||
722722 ((warn_head != NULL ) && (ap_strstr_c (warn_head , "110" ) == NULL ))) {
723- apr_table_merge (h -> resp_hdrs , "Warning" ,
724- "110 Response is stale" );
723+ apr_table_mergen (h -> resp_hdrs , "Warning" ,
724+ "110 Response is stale" );
725725 }
726726
727727 return 1 ;
0 commit comments