Skip to content

Commit 38abf6e

Browse files
committed
[PLINK-486] - [WildFly] PicketLink SAML is logging 'Stream closed' messages when using POST.
1 parent 9da299f commit 38abf6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/federation/src/main/java/org/picketlink/identity/federation/web/util/PostBindingUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ public static void sendPost(DestinationInfoHolder holder, HttpServletResponse re
142142

143143
// we need to re-configure the content length, because Tomcat may have written some content.
144144
response.resetBuffer();
145-
response.setContentLength(str.length());
146145

147146
outputStream.print(str);
147+
148+
response.setContentLength(str.length());
148149
outputStream.close();
149150
}
150151

0 commit comments

Comments
 (0)