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.51.0 lib/excon/middlewares/escape_path.rb
excon-0.50.1 lib/excon/middlewares/escape_path.rb
excon-0.50.0 lib/excon/middlewares/escape_path.rb
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/excon-0.45.4/lib/excon/middlewares/escape_path.rb
excon-0.49.0 lib/excon/middlewares/escape_path.rb
excon-0.48.0 lib/excon/middlewares/escape_path.rb
excon-0.47.0 lib/excon/middlewares/escape_path.rb
excon-0.46.0 lib/excon/middlewares/escape_path.rb
framed_rails-0.2.0 vendor/gems/excon-0.45.3/lib/excon/middlewares/escape_path.rb
framed_rails-0.1.7 vendor/gems/excon-0.45.3/lib/excon/middlewares/escape_path.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/excon-0.45.4/lib/excon/middlewares/escape_path.rb
framed_rails-0.1.5 vendor/gems/excon-0.45.3/lib/excon/middlewares/escape_path.rb
framed_rails-0.1.4 vendor/gems/excon-0.45.3/lib/excon/middlewares/escape_path.rb
framed_rails-0.1.3 vendor/gems/excon-0.45.3/lib/excon/middlewares/escape_path.rb
framed_rails-0.1.2 vendor/gems/excon-0.45.3/lib/excon/middlewares/escape_path.rb
framed_rails-0.1.0 vendor/gems/excon-0.45.3/lib/excon/middlewares/escape_path.rb
excon-0.45.4 lib/excon/middlewares/escape_path.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/excon-0.45.3/lib/excon/middlewares/escape_path.rb
excon-0.45.3 lib/excon/middlewares/escape_path.rb
excon-0.45.2 lib/excon/middlewares/escape_path.rb