From cb1ead520936719f807baedb07e5234ca44f1dfa Mon Sep 17 00:00:00 2001 From: M Lewicka Date: Mon, 9 Sep 2024 12:58:44 -0700 Subject: [PATCH] Add :on_missing to callbacks supported by Curl::Multi.http (#444) Co-authored-by: M Lewicka --- lib/curl/multi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/curl/multi.rb b/lib/curl/multi.rb index f626440..99f4544 100644 --- a/lib/curl/multi.rb +++ b/lib/curl/multi.rb @@ -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