Skip to content

Commit

Permalink
converting values to strings should still check val.empty?
Browse files Browse the repository at this point in the history
  • Loading branch information
stve committed Jun 7, 2011
1 parent ba2f1bd commit 326468a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twitter/json_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def uri_base
def params
flat = {}
@options[:params].merge( :track => @options[:filters] ).each do |param, val|
next if val.to_s.empty?
next if val.to_s.empty? || (val.respond_to?(:empty?) && val.empty?)
val = val.join(",") if val.respond_to?(:join)
flat[escape(param)] = escape(val)
end
Expand Down

0 comments on commit 326468a

Please sign in to comment.