From 0c11d7235ed1f0f5c595cf3d9a433adf9c61cc8c Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Wed, 14 Mar 2012 18:51:03 +0100 Subject: [inets] A more general version of http_uri:parse OTP-9983 --- lib/inets/src/http_client/httpc.erl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/inets') diff --git a/lib/inets/src/http_client/httpc.erl b/lib/inets/src/http_client/httpc.erl index 5ed2d98ba6..2c51c2081c 100644 --- a/lib/inets/src/http_client/httpc.erl +++ b/lib/inets/src/http_client/httpc.erl @@ -585,6 +585,10 @@ maybe_encode_uri(#http_options{url_encode = true}, URI) -> maybe_encode_uri(_, URI) -> URI. +uri_parse(AbsURI) -> + http_uri:parse(AbsURI, [{scheme_defaults, [{http, 80}, {https, 443}]}]). + + mk_chunkify_fun(ProcessBody) -> fun(eof_body) -> eof; -- cgit v1.2.3