Permalink
Browse files

pass query string to post request

  • Loading branch information...
1 parent f33f0f9 commit 02f5f776f23d43599c4356da913d5545629f227f @xianhuazhou committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http_request.rb
View
@@ -391,7 +391,7 @@ def send_request(http)
end
h = http.method(@options[:method]).call(path, @headers)
else
- h = http.method(@options[:method]).call(@uri.path, @options[:parameters], @headers)
+ h = http.method(@options[:method]).call("#{@uri.path}?#{@uri.query}", @options[:parameters], @headers)
end
self.class.update_cookies h

0 comments on commit 02f5f77

Please sign in to comment.