Skip to content

Commit

Permalink
Fix a bug where headers are sent twice
Browse files Browse the repository at this point in the history
There was a bug in multi.rb adding the headers twice, when
using a Request instead of Easy object.
  • Loading branch information
gravis committed Jun 29, 2010
1 parent 1803167 commit 86c4194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/typhoeus/multi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def remove(easy)
end

def add(easy)
easy.set_headers()
easy.set_headers() if easy.headers.empty?
@easy_handles << easy
multi_add_handle(easy)
end
Expand Down

0 comments on commit 86c4194

Please sign in to comment.