Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0772-script_re_write-included-in-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0772-script_re_write-included-in-tests.patch of Package erlang
From 042f7a962cc4d982b435120e5cef49ea8939cc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Min=C4=91ek?= <marko.mindek@gmail.com> Date: Wed, 7 Jun 2023 00:14:06 +0200 Subject: [PATCH 2/2] script_re_write included in tests --- lib/inets/test/httpd_SUITE.erl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/inets/test/httpd_SUITE.erl b/lib/inets/test/httpd_SUITE.erl index 0cd31427e0..121969994f 100644 --- a/lib/inets/test/httpd_SUITE.erl +++ b/lib/inets/test/httpd_SUITE.erl @@ -1149,11 +1149,19 @@ alias() -> [{doc, "Test mod_alias"}]. alias(Config) when is_list(Config) -> + Cgi = case os:type() of + {win32, _} -> + "printenv.bat"; + _ -> + "printenv.sh" + end, TestURIs200 = [ {"GET /pics/icon.sheet.gif ", 200, "image/gif"}, {"GET /pictures/icon.sheet.gif ", 200, "image/gif"}, {"GET / ", 200, "text/html"}, - {"GET /misc/ ", 200, "text/html"} + {"GET /misc/ ", 200, "text/html"}, + {"GET /cgi-bin/" ++ Cgi ++ " ", 200, "text/html"}, + {"GET /cgi-UNWANTED-bin/" ++ Cgi ++ " ", 200, "text/html"} ], Test200 = fun({Request, ResultCode, ContentType}) -> @@ -2162,8 +2170,9 @@ config_template(Config, ServerRoot, ScriptPath, Modules) -> {"gif", "image/gif"}]}, {alias, {"/icons/", filename:join(ServerRoot,"icons") ++ "/"}}, {re_write, {"/pic(ture)?s/", filename:join(ServerRoot,"icons") ++ "/"}}, - {script_alias, {"/cgi-bin/", ScriptPath}}, {script_alias, {"/htbin/", ScriptPath}}, + {script_alias, {"/cgi-bin/", ScriptPath}}, + {script_re_write, {"/cgi-([a-zA-Z-]*)bin/", ScriptPath}}, {erl_script_alias, {"/cgi-bin/erl", Modules}} ]. -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor