2023-08-18 07:18:40 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# Monkey patching until https://github.com/httprb/http/pull/757 is merged
|
|
|
|
unless HTTP::Request::METHODS.include?(:purge)
|
2023-08-18 15:06:46 +01:00
|
|
|
methods = HTTP::Request::METHODS.dup
|
|
|
|
HTTP::Request.send(:remove_const, :METHODS)
|
|
|
|
HTTP::Request.const_set(:METHODS, methods.push(:purge).freeze)
|
2023-08-18 07:18:40 +01:00
|
|
|
end
|