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

Version Path
coingecko_client-0.1.1 vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/escape_path.rb
coingecko_client-0.1.0 vendor/bundle/ruby/2.7.0/gems/excon-0.75.0/lib/excon/middlewares/escape_path.rb
excon-0.75.0 lib/excon/middlewares/escape_path.rb
excon-0.74.0 lib/excon/middlewares/escape_path.rb
excon-0.73.0 lib/excon/middlewares/escape_path.rb
excon-0.72.0 lib/excon/middlewares/escape_path.rb
excon-0.71.1 lib/excon/middlewares/escape_path.rb
excon-0.71.0 lib/excon/middlewares/escape_path.rb
excon-0.70.0 lib/excon/middlewares/escape_path.rb
excon-0.69.1 lib/excon/middlewares/escape_path.rb
excon-0.69.0 lib/excon/middlewares/escape_path.rb
excon-0.68.0 lib/excon/middlewares/escape_path.rb
excon-0.67.0 lib/excon/middlewares/escape_path.rb
excon-0.66.0 lib/excon/middlewares/escape_path.rb
excon-0.65.0 lib/excon/middlewares/escape_path.rb
excon-0.64.0 lib/excon/middlewares/escape_path.rb
excon-0.63.0 lib/excon/middlewares/escape_path.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/excon-0.62.0/lib/excon/middlewares/escape_path.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/excon-0.62.0/lib/excon/middlewares/escape_path.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/excon-0.62.0/lib/excon/middlewares/escape_path.rb