mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-09-04 00:01:02 -04:00
ignoring URI escape deprecation (not the same result)
This commit is contained in:
parent
9040c837d4
commit
453f0c8c63
@ -46,4 +46,7 @@ Naming/AccessorMethodName:
|
||||
Enabled: false
|
||||
|
||||
Naming/UncommunicativeMethodParamName:
|
||||
Enabled: false
|
||||
|
||||
Lint/UriEscapeUnescape:
|
||||
Enabled: false
|
@ -1,6 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "cgi"
|
||||
require "forwardable"
|
||||
|
||||
module HTTPX
|
||||
@ -44,7 +43,7 @@ module HTTPX
|
||||
|
||||
def initialize(verb, uri, options = {})
|
||||
@verb = verb.to_s.downcase.to_sym
|
||||
@uri = URI(CGI.escape(uri.to_s))
|
||||
@uri = URI(URI.escape(uri.to_s))
|
||||
@options = Options.new(options)
|
||||
|
||||
raise(Error, "unknown method: #{verb}") unless METHODS.include?(@verb)
|
||||
|
Loading…
x
Reference in New Issue
Block a user