Sha256: 1776a27c76432ecd962cbbc4f4d104a88850ca683d88f6b1e866bf5e40dfeeed

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 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.2.0 lib/faraday/request/url_encoding_fix.rb