lib/onering/cli/call.rb in onering-client-0.0.83 vs lib/onering/cli/call.rb in onering-client-0.0.84

- old
+ new

@@ -33,19 +33,19 @@ data = STDIN.read() unless STDIN.tty? headers = { 'Content-Type' => 'application/json' }.merge(Hash[@opts[:header].collect{|i| - i.split(/\:\s*/,2) + i.split(/[\:=]\s*/,2) }]) rv = @api.request(@opts[:method], args.first, { :body => data, :headers => headers, :query => Hash[@opts[:query].collect{|i| i.split('=',2) }] - }.compact) + }) return (rv.parsed_response rescue rv.response.body) end end end \ No newline at end of file