diff options
-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 |