http_uri:parse(URI) now returns {ok,{Scheme,...}} in R15B #9

merged 1 commit into from Dec 18, 2011


None yet

2 participants

naoyat commented Dec 18, 2011

To make it work with the latest version, Erlang/OTP R15B, I added two lines:

diff --git a/src/oauth.erl b/src/oauth.erl
index 5fc563e..d7257ad 100644
--- a/src/oauth.erl
+++ b/src/oauth.erl
@@ -228,6 +228,8 @@ header_param_decode(Param) ->

 uri_normalize(URI) ->
   case http_uri:parse(URI) of
+    {ok, {Scheme, UserInfo, Host, Port, Path, _Query}} -> % R15B
+      uri_normalize(Scheme, UserInfo, string:to_lower(Host), Port, [Path]);
     {Scheme, UserInfo, Host, Port, Path, _Query} ->
       uri_normalize(Scheme, UserInfo, string:to_lower(Host), Port, [Path]);
     Else ->

Best regards,

tim commented Dec 18, 2011

Good catch, I hadn't noticed that change in the release notes. Thanks!

@tim tim merged commit 3968d19 into tim:master Dec 18, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment