Permalink
Browse files

Merge branch 'patch-1' of https://github.com/sbfaulkner/httparty into…

… sbfaulkner-patch-1
  • Loading branch information...
2 parents de8fa29 + 3d82f16 commit bd17111f41a00d97e869122050be3f35b498942c @jnunemaker committed Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/httparty
View
4 bin/httparty 100755 → 100644
@@ -32,9 +32,9 @@ OptionParser.new do |o|
"--data [BODY]",
"Data to put in request body (prefix with '@' for file)") do |d|
if d =~ /^@/
- opts[:data] = open(d[1..-1]).read
+ opts[:body] = open(d[1..-1]).read
else
- opts[:data] = d
+ opts[:body] = d
end
end

0 comments on commit bd17111

Please sign in to comment.