Sha256: 61c1be384d0093fcaa20c76995f9ebdb6b947f5f10c06e32124786ffbe00047d

Contents?: true

Size: 322 Bytes

Versions: 47

Compression:

Stored size: 322 Bytes

Contents

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

47 entries across 47 versions & 4 rubygems

Version Path
excon-0.37.0 lib/excon/middlewares/escape_path.rb
excon-0.36.0 lib/excon/middlewares/escape_path.rb
excon-0.35.0 lib/excon/middlewares/escape_path.rb
excon-0.34.0 lib/excon/middlewares/escape_path.rb
excon-0.33.0 lib/excon/middlewares/escape_path.rb
excon-0.32.1 lib/excon/middlewares/escape_path.rb
excon-0.32.0 lib/excon/middlewares/escape_path.rb