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
excon-1.2.3 lib/excon/middlewares/escape_path.rb
excon-1.2.2 lib/excon/middlewares/escape_path.rb
excon-1.2.1 lib/excon/middlewares/escape_path.rb
excon-1.2.0 lib/excon/middlewares/escape_path.rb
excon-1.1.1 lib/excon/middlewares/escape_path.rb
excon-1.1.0 lib/excon/middlewares/escape_path.rb
excon-1.0.0 lib/excon/middlewares/escape_path.rb
excon-0.112.0 lib/excon/middlewares/escape_path.rb
excon-0.111.0 lib/excon/middlewares/escape_path.rb
excon-0.110.0 lib/excon/middlewares/escape_path.rb
excon-0.109.0 lib/excon/middlewares/escape_path.rb
excon-0.108.0 lib/excon/middlewares/escape_path.rb
excon-0.107.0 lib/excon/middlewares/escape_path.rb
excon-0.106.0 lib/excon/middlewares/escape_path.rb
excon-0.105.0 lib/excon/middlewares/escape_path.rb
excon-0.104.0 lib/excon/middlewares/escape_path.rb
excon-0.103.0 lib/excon/middlewares/escape_path.rb
excon-0.102.0 lib/excon/middlewares/escape_path.rb
excon-0.101.0 lib/excon/middlewares/escape_path.rb
excon-0.100.0 lib/excon/middlewares/escape_path.rb