added regexp extensions where using match?

This commit is contained in:
HoneyryderChuck 2021-08-10 11:13:30 +01:00
parent 2a5c429dbd
commit c7f177adbb
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,8 @@ require "delegate"
module HTTPX::Plugins
module Multipart
using HTTPX::RegexpExtensions unless Regexp.method_defined?(:match?)
CRLF = "\r\n"
class FilePart < SimpleDelegator

View File

@ -4,6 +4,8 @@ module HTTPX
module Transcoder
extend Registry
using RegexpExtensions unless Regexp.method_defined?(:match?)
module_function
def normalize_keys(key, value, cond = nil, &block)