diff options
author | Zandra <[email protected]> | 2016-01-29 17:44:07 +0100 |
---|---|---|
committer | Zandra <[email protected]> | 2016-01-29 17:44:07 +0100 |
commit | e038cbe699acc19901e10b9569a3b783e900582d (patch) | |
tree | b1167aedbaebb835e0a8a59be8528f43b4da3864 /lib/inets/test/httpd_poll.erl | |
parent | 8a6abf9ac1ce0bae427e202b857d03b89086bb8d (diff) | |
parent | 57a928b4bc1076b169ecc95e38ab23cf79e03280 (diff) | |
download | otp-e038cbe699acc19901e10b9569a3b783e900582d.tar.gz otp-e038cbe699acc19901e10b9569a3b783e900582d.tar.bz2 otp-e038cbe699acc19901e10b9569a3b783e900582d.zip |
Merge branch 'maint'
Conflicts:
OTP_VERSION
Diffstat (limited to 'lib/inets/test/httpd_poll.erl')
-rw-r--r-- | lib/inets/test/httpd_poll.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/inets/test/httpd_poll.erl b/lib/inets/test/httpd_poll.erl index aca7b70376..4a570fb512 100644 --- a/lib/inets/test/httpd_poll.erl +++ b/lib/inets/test/httpd_poll.erl @@ -259,11 +259,11 @@ validate(ExpStatusCode,Socket,Response) -> vtrace("validate -> Entry with ~p bytes response",[Sz]), Size = trash_the_rest(Socket,Sz), close(Socket), - case inets_regexp:split(Response," ") of - {ok,["HTTP/1.0",ExpStatusCode|_]} -> + case re:split(Response," ", [{return, list}]) of + ["HTTP/1.0",ExpStatusCode|_] -> vlog("response (~p bytes) was ok",[Size]), ok; - {ok,["HTTP/1.0",StatusCode|_]} -> + ["HTTP/1.0",StatusCode|_] -> verror("unexpected response status received: ~s => ~s", [StatusCode,status_to_message(StatusCode)]), log("unexpected result to GET of '~s': ~s => ~s", |