Skip to content

Comments

Fix POST/PUT being converted to GET during HTTP→HTTPS redirect#159

Open
manikyarathore wants to merge 1 commit intoINCF:masterfrom
manikyarathore:master_1
Open

Fix POST/PUT being converted to GET during HTTP→HTTPS redirect#159
manikyarathore wants to merge 1 commit intoINCF:masterfrom
manikyarathore:master_1

Conversation

@manikyarathore
Copy link

Added HttpToHttpsPreserveMethodFilter to ensure REST clients retain their original HTTP method when redirected from HTTP to HTTPS. The previous 302/301 redirect behavior caused browsers and clients to resend requests as GET, breaking POST/PUT operations on /webservice/* endpoints.

This fix uses an explicit 308 Permanent Redirect to preserve the method and request body. Also updated web.xml to register the new filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant