From cab0d953196ea0102d4922f7d2391b448a9725e8 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Fri, 17 Nov 2023 09:20:49 +0100 Subject: [PATCH 1/3] Update URL to curl's repo [ci skip] --- lib/ethon/curls/infos.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ethon/curls/infos.rb b/lib/ethon/curls/infos.rb index d285f5b..0db95df 100644 --- a/lib/ethon/curls/infos.rb +++ b/lib/ethon/curls/infos.rb @@ -22,7 +22,7 @@ def info_types end # http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTDEBUGFUNCTION - # https://github.com/bagder/curl/blob/master/include/curl/curl.h#L378 + # https://github.com/curl/curl/blob/master/include/curl/curl.h#L378 # # @example Return debug info types. # Ethon::Curl.debug_info_types @@ -41,7 +41,7 @@ def debug_info_types end # Return Info details, refer - # https://github.com/bagder/curl/blob/master/src/tool_writeout.c#L66 for details + # https://github.com/curl/curl/blob/master/src/tool_writeout.c#L66 for details # # @example Return infos. # Ethon::Curl.infos From eedf4fa42d61aa624e88ee0cc2ac43af92a2f530 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Fri, 17 Nov 2023 09:22:57 +0100 Subject: [PATCH 2/3] Fix URL to a curl function documentation page [ci skip] --- lib/ethon/curls/infos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ethon/curls/infos.rb b/lib/ethon/curls/infos.rb index 0db95df..6c7583d 100644 --- a/lib/ethon/curls/infos.rb +++ b/lib/ethon/curls/infos.rb @@ -21,7 +21,7 @@ def info_types } end - # http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTDEBUGFUNCTION + # https://curl.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html # https://github.com/curl/curl/blob/master/include/curl/curl.h#L378 # # @example Return debug info types. From e8ee0c3d48abc48f89fddd3e00d7ad9233b97ab7 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Fri, 17 Nov 2023 09:26:14 +0100 Subject: [PATCH 3/3] Use https://curl.se URLs [ci skip] --- CHANGELOG.md | 2 +- lib/ethon.rb | 2 +- lib/ethon/curls/codes.rb | 4 ++-- lib/ethon/curls/constants.rb | 6 +++--- lib/ethon/curls/form_options.rb | 2 +- lib/ethon/curls/options.rb | 8 ++++---- lib/ethon/easy.rb | 6 +++--- lib/ethon/easy/informations.rb | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ae7a48..81ee731 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -190,7 +190,7 @@ Enhancements: Enhancements: * Add support for protocols and redir_protocols( - [libcurl SASL buffer overflow vulnerability](http://curl.haxx.se/docs/adv_20130206.html)). + [libcurl SASL buffer overflow vulnerability](https://curl.se/docs/adv_20130206.html)). * Add max_send_speed_large and max_recv_speed_large([Paul Schuegraf](https://github.com/pschuegr), [\#33](https://github.com/typhoeus/ethon/pull/33)) ## 0.5.7 diff --git a/lib/ethon.rb b/lib/ethon.rb index 461b4c3..77f888e 100644 --- a/lib/ethon.rb +++ b/lib/ethon.rb @@ -31,6 +31,6 @@ # # @note Please update to the latest libcurl version in order # to benefit from all features and bugfixes. -# http://curl.haxx.se/download.html +# https://curl.se/download.html module Ethon end diff --git a/lib/ethon/curls/codes.rb b/lib/ethon/curls/codes.rb index 4b53096..65d2f4a 100644 --- a/lib/ethon/curls/codes.rb +++ b/lib/ethon/curls/codes.rb @@ -7,7 +7,7 @@ module Curls # :nodoc: module Codes # Libcurl error codes, refer - # https://github.com/bagder/curl/blob/master/include/curl/curl.h for details + # https://github.com/curl/curl/blob/master/include/curl/curl.h for details def easy_codes [ :ok, @@ -103,7 +103,7 @@ def easy_codes end # Curl-Multi socket error codes, refer - # https://github.com/bagder/curl/blob/master/include/curl/multi.h for details + # https://github.com/curl/curl/blob/master/include/curl/multi.h for details def multi_codes [ :call_multi_perform, -1, diff --git a/lib/ethon/curls/constants.rb b/lib/ethon/curls/constants.rb index 3c7c32d..0679414 100644 --- a/lib/ethon/curls/constants.rb +++ b/lib/ethon/curls/constants.rb @@ -24,18 +24,18 @@ module Curl MultiOption = enum(:multi_option, multi_options(:enum).to_a.flatten) # Used by curl_debug_callback when setting CURLOPT_DEBUGFUNCTION - # https://github.com/bagder/curl/blob/master/include/curl/curl.h#L378 for details + # https://github.com/curl/curl/blob/master/include/curl/curl.h#L378 for details DebugInfoType = enum(:debug_info_type, debug_info_types) # :nodoc: InfoType = enum(info_types.to_a.flatten) # Info details, refer - # https://github.com/bagder/curl/blob/master/src/tool_writeout.c#L66 for details + # https://github.com/curl/curl/blob/master/src/tool_writeout.c#L66 for details Info = enum(:info, infos.to_a.flatten) # Form options, used by FormAdd for temporary storage, refer - # https://github.com/bagder/curl/blob/master/lib/formdata.h#L51 for details + # https://github.com/curl/curl/blob/master/lib/formdata.h#L51 for details FormOption = enum(:form_option, form_options) # :nodoc: diff --git a/lib/ethon/curls/form_options.rb b/lib/ethon/curls/form_options.rb index ce5f079..a43ec8d 100644 --- a/lib/ethon/curls/form_options.rb +++ b/lib/ethon/curls/form_options.rb @@ -6,7 +6,7 @@ module Curls module FormOptions # Form options, used by FormAdd for temporary storage, refer - # https://github.com/bagder/curl/blob/master/lib/formdata.h#L51 for details + # https://github.com/curl/curl/blob/master/lib/formdata.h#L51 for details def form_options [ :none, diff --git a/lib/ethon/curls/options.rb b/lib/ethon/curls/options.rb index 0c391d4..7476466 100644 --- a/lib/ethon/curls/options.rb +++ b/lib/ethon/curls/options.rb @@ -212,8 +212,8 @@ def self.option_type(type) end # Curl multi options, refer - # Defined @ https://github.com/bagder/curl/blob/master/include/curl/multi.h - # Documentation @ http://curl.haxx.se/libcurl/c/curl_multi_setopt.html + # Defined @ https://github.com/curl/curl/blob/master/include/curl/multi.h + # Documentation @ https://curl.se/libcurl/c/curl_multi_setopt.html option_type :multi option :multi, :socketfunction, :socket_callback, 1 @@ -231,8 +231,8 @@ def self.option_type(type) option :multi, :max_total_connections, :int, 3 # Curl easy options - # Defined @ https://github.com/bagder/curl/blob/master/include/curl/curl.h - # Documentation @ http://curl.haxx.se/libcurl/c/curl_easy_setopt.html + # Defined @ https://github.com/curl/curl/blob/master/include/curl/curl.h + # Documentation @ https://curl.se/libcurl/c/curl_easy_setopt.html ## BEHAVIOR OPTIONS option_type :easy diff --git a/lib/ethon/easy.rb b/lib/ethon/easy.rb index 355a519..7e1886f 100644 --- a/lib/ethon/easy.rb +++ b/lib/ethon/easy.rb @@ -16,7 +16,7 @@ module Ethon # This is the class representing the libcurl easy interface - # See http://curl.haxx.se/libcurl/c/libcurl-easy.html for more informations. + # See https://curl.se/libcurl/c/libcurl-easy.html for more informations. # # @example You can access the libcurl easy interface through this class, every request is based on it. The simplest setup looks like that: # @@ -197,7 +197,7 @@ class Easy # * :obsolete: These error codes will never be returned. They were used in an old # libcurl version and are currently unused. # - # @see http://curl.haxx.se/libcurl/c/libcurl-errors.html + # @see https://curl.se/libcurl/c/libcurl-errors.html attr_accessor :return_code # Initialize a new Easy. @@ -214,7 +214,7 @@ class Easy # @return [ Easy ] A new Easy. # # @see Ethon::Easy::Options - # @see http://curl.haxx.se/libcurl/c/curl_easy_setopt.html + # @see https://curl.se/libcurl/c/curl_easy_setopt.html def initialize(options = {}) Curl.init set_attributes(options) diff --git a/lib/ethon/easy/informations.rb b/lib/ethon/easy/informations.rb index cac62a3..523cf00 100644 --- a/lib/ethon/easy/informations.rb +++ b/lib/ethon/easy/informations.rb @@ -3,7 +3,7 @@ module Ethon class Easy # This module contains the methods to return informations - # from the easy handle. See http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html + # from the easy handle. See https://curl.se/libcurl/c/curl_easy_getinfo.html # for more information. module Informations