From 9846f649bff65c837e893bf2d28e20bd543bdd64 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Sun, 30 Sep 2001 01:37:20 +0000 Subject: [PATCH] Switch to the corresponding apr_table_* macro rather than doing this ourselves. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91207 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 3d615ff645..205a07fffe 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1091,7 +1091,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter( r->content_encoding); } - if (r->content_languages && r->content_languages->nelts) { + if (!apr_is_empty_table(r->content_languages)) { char **languages = (char **)(r->content_languages->elts); for (i = 0; i < r->content_languages->nelts; ++i) { apr_table_mergen(r->headers_out, "Content-Language", languages[i]); -- 2.50.1