优化代码

pull/9/MERGE
smallbun 2 years ago
parent ceb36d5cd8
commit 7fd43026da

@ -189,14 +189,14 @@ public class SamlUtils {
try {
if (request.getMethod().equals(POST_METHOD)) {
HTTPPostDecoder decoder = new HTTPPostDecoder();
decoder.setHttpServletRequest(request);
decoder.setHttpServletRequestSupplier(() -> request);
decoder.initialize();
decoder.decode();
return decoder.getMessageContext();
}
//GET
HTTPRedirectDeflateDecoder decoder = new HTTPRedirectDeflateDecoder();
decoder.setHttpServletRequest(request);
decoder.setHttpServletRequestSupplier(() -> request);
decoder.initialize();
decoder.decode();
return decoder.getMessageContext();

Loading…
Cancel
Save