1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

petty formatting issue

This commit is contained in:
John Nunemaker 2009-01-30 23:24:32 -05:00
parent e999ce11af
commit d95b5e5723

View file

@ -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