2023-08-18 09:18:40 +03: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 17:06:46 +03:00
|
|
|
methods = HTTP::Request::METHODS.dup
|
|
|
|
HTTP::Request.send(:remove_const, :METHODS)
|
|
|
|
HTTP::Request.const_set(:METHODS, methods.push(:purge).freeze)
|
2023-08-18 09:18:40 +03:00
|
|
|
end
|