Skip to content

Commit

Permalink
Add :on_missing to callbacks supported by Curl::Multi.http (#444)
Browse files Browse the repository at this point in the history
Co-authored-by: M Lewicka <[email protected]>
  • Loading branch information
shulima and M Lewicka authored Sep 9, 2024
1 parent 5eecd1f commit cb1ead5
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 @@ -95,7 +95,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_redirect,:on_body,:on_header]
callbacks = [:on_progress,:on_debug,:on_failure,:on_success,:on_redirect,:on_missing,: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 cb1ead5

Please sign in to comment.