summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornopedial <shafez@ike-2.local>2013-10-26 11:25:04 +0200
committernopedial <shafez@ike-2.local>2013-10-26 11:25:04 +0200
commit713bccb736d87283d98781e7c557cd48bae24aa3 (patch)
treec2d7192f2c154bb21144cd5e5898e2e64ac13e5c /lib
parent52c5c00326d723c4649f862dde66fdaf331f7250 (diff)
fix logic
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/api/rest.rb2
1 files changed, 1 insertions, 1 deletions
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