From e6843599e613112837ee1ca8066eb6f189332c80 Mon Sep 17 00:00:00 2001 From: Steve Bell Date: Thu, 5 Oct 2023 13:26:28 +1300 Subject: [PATCH] Fix content type response header to application/scim+json --- app/controllers/scimitar/application_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/scimitar/application_controller.rb b/app/controllers/scimitar/application_controller.rb index 4e29857..bc4410c 100644 --- a/app/controllers/scimitar/application_controller.rb +++ b/app/controllers/scimitar/application_controller.rb @@ -126,6 +126,7 @@ def add_mandatory_response_headers # response.set_header('WWW_AUTHENTICATE', 'Basic' ) if Scimitar.engine_configuration.basic_authenticator.present? response.set_header('WWW_AUTHENTICATE', 'Bearer') if Scimitar.engine_configuration.token_authenticator.present? + response.set_header('Content-Type', 'application/scim+json; charset=utf-8') end def authenticate