Skip to content

Commit

Permalink
headers attribute on JSONStream is now initialized as a hash in reset…
Browse files Browse the repository at this point in the history
…_state
  • Loading branch information
Hayes Davis authored and stve committed Jun 7, 2011
1 parent f7d871a commit 4393af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twitter/json_stream.rb
Expand Up @@ -179,7 +179,7 @@ def reconnect_timeout
def reset_state
set_comm_inactivity_timeout @options[:timeout] if @options[:timeout] > 0
@code = 0
@headers = []
@headers = {}
@state = :init
@buffer = BufferedTokenizer.new("\r", MAX_LINE_LENGTH)

Expand Down

0 comments on commit 4393af8

Please sign in to comment.