artifice icon indicating copy to clipboard operation
artifice copied to clipboard

Support bodies specified on the request object

Open erithmetic opened this issue 14 years ago • 1 comments

Not sure if paulj has submitted a pull request to you, but he has a fix worth merging: http://github.com/paulj/artifice/commit/6511e455b00792c663b054e541ba2a61a1a4ee88

If I create a Net::HTTP request like so: request = Net::HTTP::Post.new(url.path, 'Accept' => 'application/json') request.set_form_data(fields) response = Net::HTTP.new(url.host).start { |http| http.request(request) }

The body set on the request (via set_form_data) is not used in your overridden request method.

This causes problems with HTTParty as well.

erithmetic avatar Apr 28 '10 14:04 erithmetic

If this is still desired, please make a pull request

segiddins avatar Nov 28 '16 18:11 segiddins