Sha256: b5fd33ca3f3325c0a268239ed3d5baff851e57f21aeae923a9a1901cbd8250f7

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 Bytes

Contents

require 'faraday'
require 'addressable/uri'

# @private
module Faraday
  # @private
  class Request::UrlEncodingFix < Faraday::Middleware

    def call(env)
      url = env[:url].to_s
      url.gsub!(/%3A/, ':')
      env[:url] = Addressable::URI.parse(url)
      @app.call(env)
    end


  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
genability-0.1.0 lib/faraday/request/url_encoding_fix.rb