mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
petty formatting issue
This commit is contained in:
parent
e999ce11af
commit
d95b5e5723
1 changed files with 7 additions and 7 deletions
14
bin/httparty
14
bin/httparty
|
@ -82,12 +82,12 @@ else
|
|||
response = HTTParty.send(opts[:action], ARGV.first, opts)
|
||||
puts "Status: #{response.code}"
|
||||
case opts[:output_format]
|
||||
when :json
|
||||
puts JSON.pretty_generate(response)
|
||||
when :xml
|
||||
REXML::Document.new(response.body).write(STDOUT, 2)
|
||||
puts
|
||||
else
|
||||
puts response
|
||||
when :json
|
||||
puts JSON.pretty_generate(response)
|
||||
when :xml
|
||||
REXML::Document.new(response.body).write(STDOUT, 2)
|
||||
puts
|
||||
else
|
||||
puts response
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue