Skip to content

Commit

Permalink
Add on_redirect callback handling to .http
Browse files Browse the repository at this point in the history
Fixes taf2#268
  • Loading branch information
Sven Riedel committed Nov 12, 2015
1 parent 398c9da commit a650dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/curl/multi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def http(urls_with_config, multi_options={}, &blk)

# configure the multi handle
multi_options.each { |k,v| m.send("#{k}=", v) }
callbacks = [:on_progress,:on_debug,:on_failure,:on_success,:on_body,:on_header]
callbacks = [:on_progress,:on_debug,:on_failure,:on_success,:on_redirect,:on_body,:on_header]

add_free_handle = proc do|conf, easy|
c = conf.dup # avoid being destructive to input
Expand Down

0 comments on commit a650dd2

Please sign in to comment.