From 713bccb736d87283d98781e7c557cd48bae24aa3 Mon Sep 17 00:00:00 2001 From: nopedial Date: Sat, 26 Oct 2013 11:25:04 +0200 Subject: fix logic --- lib/oxidized/api/rest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oxidized/api/rest.rb b/lib/oxidized/api/rest.rb index 1a426f5..17fade1 100644 --- a/lib/oxidized/api/rest.rb +++ b/lib/oxidized/api/rest.rb @@ -6,7 +6,7 @@ module Oxidized module Helpers def send res, msg='OK', ascii=false, status=200 res.body = msg - if ascii + if not ascii msg = {:result => msg} res['Content-Type'] = 'application/json' res.status = status -- cgit v1.2.1