Permalink
Browse files

Merge pull request #9 from naoyat/master

http_uri:parse(URI) now returns {ok,{Scheme,...}} in R15B
  • Loading branch information...
2 parents 7969309 + 89ebe2c commit 3968d19a95faf2b7acc572c316c5d9d9447ac06b @tim committed Dec 18, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/oauth.erl
View
@@ -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 ->

0 comments on commit 3968d19

Please sign in to comment.