1
0

http_extensions.rb 306 B

12345678
  1. # frozen_string_literal: true
  2. # Monkey patching until https://github.com/httprb/http/pull/757 is merged
  3. unless HTTP::Request::METHODS.include?(:purge)
  4. methods = HTTP::Request::METHODS.dup
  5. HTTP::Request.send(:remove_const, :METHODS)
  6. HTTP::Request.const_set(:METHODS, methods.push(:purge).freeze)
  7. end