aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/httpd_mod.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2017-11-02 08:22:34 +0100
committerErlang/OTP <[email protected]>2017-11-02 08:22:34 +0100
commitd8f7b40f0d8ea8ede5bf1538a1bdc4928e9989f1 (patch)
tree7e9b456cba610151fcffe934023094dfe28dec9a /lib/inets/test/httpd_mod.erl
parenta98379d0519c28f9bc9b673ed2c09fb1ad52456e (diff)
parent25112441ccfb14040a977042d6333e42df7d234f (diff)
downloadotp-d8f7b40f0d8ea8ede5bf1538a1bdc4928e9989f1.tar.gz
otp-d8f7b40f0d8ea8ede5bf1538a1bdc4928e9989f1.tar.bz2
otp-d8f7b40f0d8ea8ede5bf1538a1bdc4928e9989f1.zip
Merge branch 'ingela/inets/maint/httpd-location-chunk-and-close/OTP-14716/OTP-14656/OTP-14696' into maint-20
* ingela/inets/maint/httpd-location-chunk-and-close/OTP-14716/OTP-14656/OTP-14696: inets: Prepare for release inets: httpd - Fix broken handling of POST requests inets: Make sure httpd:stop_service is synchronous 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,