mirror of
https://github.com/correl/urilib.git
synced 2024-11-22 03:00:16 +00:00
Whitespace cleanup [ci skip]
This commit is contained in:
parent
63a72b114e
commit
074dffa0dd
1 changed files with 4 additions and 2 deletions
|
@ -79,7 +79,8 @@ parse(Value) ->
|
||||||
case http_uri:parse(Value, [{scheme_defaults, http_uri:scheme_defaults()}, {fragment, true}]) of
|
case http_uri:parse(Value, [{scheme_defaults, http_uri:scheme_defaults()}, {fragment, true}]) of
|
||||||
{ok, {Scheme, UserInfo, Host, Port, Path, Query, Fragment}} ->
|
{ok, {Scheme, UserInfo, Host, Port, Path, Query, Fragment}} ->
|
||||||
{Scheme, {parse_userinfo(UserInfo), Host, Port}, Path, parse_query(Query), parse_fragment(Fragment)};
|
{Scheme, {parse_userinfo(UserInfo), Host, Port}, Path, parse_query(Query), parse_fragment(Fragment)};
|
||||||
{error, Reason} -> {error, Reason}
|
{error, Reason} ->
|
||||||
|
{error, Reason}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
@ -94,7 +95,8 @@ parse(Value, url) ->
|
||||||
{ok, {Scheme, UserInfo, Host, Port, Path, Query, Fragment}} ->
|
{ok, {Scheme, UserInfo, Host, Port, Path, Query, Fragment}} ->
|
||||||
{Username, Password} = parse_userinfo(UserInfo),
|
{Username, Password} = parse_userinfo(UserInfo),
|
||||||
{Scheme, Username, Password, Host, Port, Path, parse_query(Query), parse_fragment(Fragment)};
|
{Scheme, Username, Password, Host, Port, Path, parse_query(Query), parse_fragment(Fragment)};
|
||||||
{error, Reason} -> {error, Reason}
|
{error, Reason} ->
|
||||||
|
{error, Reason}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue