[java-plugin-shibd] 01/02: Add content type to responses.

Scott Cantor cantor.2 at osu.edu
Tue Jul 2 16:53:22 UTC 2024


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-plugin-shibd.

View the commit online:
http://git.shibboleth.net/view/?p=java-plugin-shibd.git;a=commit;h=5967a4ef3794f4a2248cc46bac6e709e4145517f

commit 5967a4ef3794f4a2248cc46bac6e709e4145517f
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Jul 2 12:52:59 2024 -0400

    Add content type to responses.
---
 .../main/java/net/shibboleth/sp/profile/impl/EncodeAgentResponse.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/EncodeAgentResponse.java b/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/EncodeAgentResponse.java
index b214f32..2ae2e48 100644
--- a/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/EncodeAgentResponse.java
+++ b/sp-server-impl/src/main/java/net/shibboleth/sp/profile/impl/EncodeAgentResponse.java
@@ -77,6 +77,8 @@ public class EncodeAgentResponse extends AbstractAgentRequestAction {
             ActionSupport.buildEvent(profileRequestContext, EventIds.INVALID_PROFILE_CTX);
             return;
         }
+        
+        response.setContentType("text/plain");
 
         try (final OutputStream out = response.getOutputStream()) {
             assert out != null;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list