Sha256: 178da1a965c2827d1a3a4d02b8397971a9c31aa14a95af5284b3c2220cab7fe6

Contents?: true

Size: 554 Bytes

Versions: 11

Compression:

Stored size: 554 Bytes

Contents

module WWW
  class Mechanize
    class Chain
      class ParameterResolver
        include WWW::Handler

        def handle(ctx, params)
          parameters  = params[:params]
          uri         = params[:uri]
          if params[:verb] == :get
            if parameters.length > 0
              uri.query ||= ''
              uri.query << '&' if uri.query.length > 0
              uri.query << Util.build_query_string(parameters)
            end
            params[:params] = []
          end
          super
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
mechanize-ntlm-0.9.1 lib/www/mechanize/chain/parameter_resolver.rb
mechanize-0.8.0 lib/www/mechanize/chain/parameter_resolver.rb
mechanize-0.8.1 lib/www/mechanize/chain/parameter_resolver.rb
mechanize-0.8.3 lib/www/mechanize/chain/parameter_resolver.rb
mechanize-0.8.2 lib/www/mechanize/chain/parameter_resolver.rb
mechanize-0.8.4 lib/www/mechanize/chain/parameter_resolver.rb
mechanize-0.9.3 lib/www/mechanize/chain/parameter_resolver.rb
mechanize-0.9.2 lib/www/mechanize/chain/parameter_resolver.rb
mechanize-0.9.0 lib/www/mechanize/chain/parameter_resolver.rb
mechanize-0.9.1 lib/www/mechanize/chain/parameter_resolver.rb
mechanize-0.8.5 lib/www/mechanize/chain/parameter_resolver.rb