From 838f64d5ad1eeb58b50118876e08628a82b7cf63 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Fri, 6 Nov 2015 16:28:41 +0100 Subject: [PATCH] feature #3819: Set content type for onegate responses --- src/onegate/onegate-server.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/onegate/onegate-server.rb b/src/onegate/onegate-server.rb index 754e10b40d..333261b15f 100644 --- a/src/onegate/onegate-server.rb +++ b/src/onegate/onegate-server.rb @@ -81,6 +81,10 @@ end set :cloud_auth, $cloud_auth +before do + content_type 'application/json', :charset => 'utf-8' +end + helpers do def authenticate(env, params) begin