Sha256: 30eab0a0c6c69b3e8699683a93b8d3bb5d6394ff8825d62cdd95d1e8a5ff15d1
Contents?: true
Size: 352 Bytes
Versions: 92
Compression:
Stored size: 352 Bytes
Contents
# frozen_string_literal: true module Excon module Middleware class EscapePath < Excon::Middleware::Base def request_call(datum) # make sure path is encoded, prevent double encoding datum[:path] = Excon::Utils.escape_uri(Excon::Utils.unescape_uri(datum[:path])) @stack.request_call(datum) end end end end
Version data entries
92 entries across 88 versions & 4 rubygems