lib/rquest/requestor.rb in rquest-1.0.1 vs lib/rquest/requestor.rb in rquest-1.0.2
- old
+ new
@@ -37,9 +37,10 @@
def merge_settings
@headers = @headers.merge( @settings[:headers] )
@cookies = @cookies.merge( @settings[:cookies] )
@q_params = @q_params.merge( @settings[:q_params] )
+ @payload = @settings[:payload] unless @settings[:payload].nil?
end
def send
@last_response_time = Benchmark.realtime do
@last_response = @http_client.request(@http_request_client)