Permalink
Browse files

update oauth to latest version

  • Loading branch information...
1 parent 12ee412 commit 2b796ea7973c0f38aad569bf2506bd8026eca004 @benoitc benoitc committed Jan 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/oauth_uri.erl
View
@@ -31,7 +31,7 @@ params_to_header_string(Params) ->
intercalate(", ", [concat([encode(K), "=\"", encode(V), "\""]) || {K, V} <- Params]).
params_from_header_string(String) ->
- [param_from_header_string(Param) || Param <- re:split(String, ",\\s*", [{return, list}])].
+ [param_from_header_string(Param) || Param <- re:split(String, ",\\s*", [{return, list}]), Param =/= ""].
param_from_header_string(Param) ->
[Key, QuotedValue] = string:tokens(Param, "="),

0 comments on commit 2b796ea

Please sign in to comment.