summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2022-03-30 18:06:32 -0600
committermo khan <mo@mokhan.ca>2022-03-30 18:06:32 -0600
commitd15bdc6150e81cbb838376f4f6d1cbf4e086686e (patch)
tree70088e6cdf67f8824112d771a469fb855047d14d
parent2a3cc4b59e210c5f4efa3a4b656d3bbb293ff2e2 (diff)
return text/html content-type
-rw-r--r--src/saml-idp/main.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/saml-idp/main.rb b/src/saml-idp/main.rb
index 575fb7d..d829ff9 100644
--- a/src/saml-idp/main.rb
+++ b/src/saml-idp/main.rb
@@ -131,7 +131,7 @@ class IdentityProvider
ERB
erb = ERB.new(template, nil, trim_mode: '-')
html = erb.result(binding)
- [200, {}, [html]]
+ [200, { 'Content-Type' => "text/html" }, [html]]
end
def call(env)
@@ -165,9 +165,7 @@ class IdentityProvider
else
query_string = request.query_string
on = query_string.include?("&amp;") ? "&amp;" : "&"
- result = Hash[query_string.split(on).map { |x| x.split("=", 2) }]
- result = result.symbolize_keys
- result
+ Hash[query_string.split(on).map { |x| x.split("=", 2) }].symbolize_keys
end
end
end