aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/http_format_SUITE.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2017-11-09 16:15:41 +0100
committerErlang/OTP <[email protected]>2017-11-09 16:15:41 +0100
commitcb3387d9486ed3d8572993cd0e355718026be061 (patch)
tree5e642a19077addae7131d445c378cb5bcdf168c9 /lib/inets/test/http_format_SUITE.erl
parent8ceee73b703976cdc09687b4c0efcf2c490c3954 (diff)
parent07bfe477c0a06fbd7df5e216a7c072594fd17e4d (diff)
downloadotp-cb3387d9486ed3d8572993cd0e355718026be061.tar.gz
otp-cb3387d9486ed3d8572993cd0e355718026be061.tar.bz2
otp-cb3387d9486ed3d8572993cd0e355718026be061.zip
Merge branch 'ingela/inets/fix-location/OTP-14761' into maint-20
* ingela/inets/fix-location/OTP-14761: inets: Prepare for release inets: Add missing guard
Diffstat (limited to 'lib/inets/test/http_format_SUITE.erl')
-rw-r--r--lib/inets/test/http_format_SUITE.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/inets/test/http_format_SUITE.erl b/lib/inets/test/http_format_SUITE.erl
index 9a13ed3d17..647eff4f7c 100644
--- a/lib/inets/test/http_format_SUITE.erl
+++ b/lib/inets/test/http_format_SUITE.erl
@@ -536,7 +536,10 @@ esi_parse_headers(Config) when is_list(Config) ->
httpd_esi:handle_headers(Headers2),
{ok,[{"location","/foo/bar.html"}], 302} =
- httpd_esi:handle_headers("location:/foo/bar.html\r\n").
+ httpd_esi:handle_headers("location:/foo/bar.html\r\n"),
+
+ {ok,[{"location","http://foo/bar.html"}],201} =
+ httpd_esi:handle_headers("status:201 Created\r\nlocation:http://foo/bar.html\r\n").
%%--------------------------------------------------------------------
cgi_parse_headers() ->