Browse files

added the possibility to specify a body_stream in HttpRequest

  • Loading branch information...
1 parent 3c01a60 commit 50c46e2e40211779f58f91925aad73b74216d96b @klobuczek klobuczek committed Mar 3, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/httparty/request.rb
View
1 lib/httparty/request.rb
@@ -148,6 +148,7 @@ def query_string_normalizer
def setup_raw_request
@raw_request = http_method.new(request_uri(uri))
@raw_request.body = body if body
+ @raw_request.body_stream = options[:body_stream] if options[:body_stream]
@raw_request.initialize_http_header(options[:headers])
@raw_request.basic_auth(username, password) if options[:basic_auth]
setup_digest_auth if options[:digest_auth]

0 comments on commit 50c46e2

Please sign in to comment.