Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Allow parsing of requests with no OAuth headers.
  • Loading branch information
janl committed Nov 26, 2010
1 parent 7d85d3e commit cec39b1d83d18988597a1fbbbb0858d8a43fdaf7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 cec39b1

Please sign in to comment.