You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jc...@apache.org on 2017/07/05 20:13:26 UTC

svn commit: r1800944 - in /httpd/test/framework/trunk/t: htdocs/modules/lua/setheaders.lua modules/lua.t

Author: jchampion
Date: Wed Jul  5 20:13:25 2017
New Revision: 1800944

URL: http://svn.apache.org/viewvc?rev=1800944&view=rev
Log:
mod_lua: add apr_table compatibility test

We might back this out later, if we decide not to keep the
(undocumented) global variable.

Modified:
    httpd/test/framework/trunk/t/htdocs/modules/lua/setheaders.lua
    httpd/test/framework/trunk/t/modules/lua.t

Modified: httpd/test/framework/trunk/t/htdocs/modules/lua/setheaders.lua
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/htdocs/modules/lua/setheaders.lua?rev=1800944&r1=1800943&r2=1800944&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/htdocs/modules/lua/setheaders.lua (original)
+++ httpd/test/framework/trunk/t/htdocs/modules/lua/setheaders.lua Wed Jul  5 20:13:25 2017
@@ -1,4 +1,5 @@
 function handle(r)
     r.headers_out["X-Header"] = "yes"
     r.headers_out["X-Host"]   = r.headers_in["Host"]
+    apr_table.set(r.headers_out, "X-Compat", "compat")
 end

Modified: httpd/test/framework/trunk/t/modules/lua.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/lua.t?rev=1800944&r1=1800943&r2=1800944&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/lua.t (original)
+++ httpd/test/framework/trunk/t/modules/lua.t Wed Jul  5 20:13:25 2017
@@ -37,6 +37,7 @@ my @ts = (
     { url => "$pfx/https.lua", rcontent => $https },
     { url => "$pfx/setheaders.lua", rcontent => "",
                                     headers => { "X-Header" => "yes",
+                                                 "X-Compat" => "compat",
                                                  "X-Host"   => $hostport } },
 );