Save and use the binding type (GET/POST) as retrieved by the original saml request

I am customizing the IDP to support i18n. Languages are switched by adding request param like: http://idp.example.com/?lang=en. When the user switches languages, the AbstractIDPValve is confused on the type of the request (GET/POST) and tries to decode the saml message as if it was a GET request. I get an exception because the payload can not be decompressed.

This "quick" fix stores together with the payload the request method as a session note. Later on in processSAMLRequestMessage, the original method is retrieved and is passed as a parameter to IDPWebRequestUtil. If it is empty, then the request method is used.