diff options
author | nopedial <shafez@ike-2.local> | 2013-10-26 11:25:04 +0200 |
---|---|---|
committer | nopedial <shafez@ike-2.local> | 2013-10-26 11:25:04 +0200 |
commit | 713bccb736d87283d98781e7c557cd48bae24aa3 (patch) | |
tree | c2d7192f2c154bb21144cd5e5898e2e64ac13e5c /lib/oxidized | |
parent | 52c5c00326d723c4649f862dde66fdaf331f7250 (diff) |
fix logic
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/api/rest.rb | 2 |
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 |