aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/httpd_mod.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-11-01 12:01:06 +0100
committerIngela Anderton Andin <[email protected]>2017-11-01 12:01:06 +0100
commit61a64986b805ac8b140e25cb4caa4ad5430837a0 (patch)
tree5b486e77148a1647acc1a4fb28ee346c64b453d2 /lib/inets/test/httpd_mod.erl
parent850375f7de788d9d3b3252adb65b3491d5d10efc (diff)
parentd7a5a8a61f496708133863391f2a67a0ea47bdc7 (diff)
downloadotp-61a64986b805ac8b140e25cb4caa4ad5430837a0.tar.gz
otp-61a64986b805ac8b140e25cb4caa4ad5430837a0.tar.bz2
otp-61a64986b805ac8b140e25cb4caa4ad5430837a0.zip
Merge branch 'ingela/inets/httpd-location/OTP-14716' into maint
* ingela/inets/httpd-location/OTP-14716: inets: httpd - do not hardcode 302 status for location
Diffstat (limited to 'lib/inets/test/httpd_mod.erl')
-rw-r--r--lib/inets/test/httpd_mod.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/inets/test/httpd_mod.erl b/lib/inets/test/httpd_mod.erl
index d9118aa1a4..2035b50248 100644
--- a/lib/inets/test/httpd_mod.erl
+++ b/lib/inets/test/httpd_mod.erl
@@ -779,9 +779,14 @@ esi(Type, Port, Host, Node) ->
[{statuscode, 200},
{no_header, "cache-control"},
{version, "HTTP/1.0"}]),
+ ok = httpd_test_lib:verify_request(Type, Host, Port, Node,
+ "GET /cgi-bin/erl/httpd_example:new_status_and_location"
+ " HTTP/1.1\r\n\r\n",
+ [{statuscode, 201},
+ {header, "Location"},
+ {version, "HTTP/1.1"}]),
ok.
-
%%--------------------------------------------------------------------
get(Type, Port, Host, Node) ->
ok = httpd_test_lib:verify_request(Type, Host, Port, Node,