0001-Fix-Net-HTTP.post_form-example.patch

David Albert, 02/07/2013 09:18 AM

Download (843 Bytes)

View differences:

lib/net/http.rb
496 496
    #   require 'net/http'
497 497
    #   require 'uri'
498 498
    #
499
    #   HTTP.post_form URI('http://www.example.com/search.cgi'),
500
    #                  { "q" => "ruby", "max" => "50" }
499
    #   Net::HTTP.post_form URI('http://www.example.com/search.cgi'),
500
    #                       { "q" => "ruby", "max" => "50" }
501 501
    #
502 502
    def HTTP.post_form(url, params)
503 503
      req = Post.new(url)
504
-