This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-08-18 08:18:40 +02: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 16:06:46 +02:00
|
|
|
methods = HTTP::Request::METHODS.dup
|
|
|
|
HTTP::Request.send(:remove_const, :METHODS)
|
|
|
|
HTTP::Request.const_set(:METHODS, methods.push(:purge).freeze)
|
2023-08-18 08:18:40 +02:00
|
|
|
end
|