Skip to content

Commit

Permalink
Fix callback parameter count
Browse files Browse the repository at this point in the history
Fixes taf2#270
  • Loading branch information
Sven Riedel committed Nov 12, 2015
1 parent 398c9da commit faf36e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/curl/multi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def http(urls_with_config, multi_options={}, &blk)
#
c.each { |k,v| easy.send("#{k}=",v) }

easy.on_complete {|curl,code|
easy.on_complete {|curl|
free_handles << curl
blk.call(curl,code,method) if blk
blk.call(curl,curl.response_code,method) if blk
}
m.add(easy)
end
Expand Down

0 comments on commit faf36e8

Please sign in to comment.