I have a Java web app running on Tomcat and am trying to perform a 302 redirection.
The problem is: original request URL uses HTTPS. I want the redirect URL to use HTTP instead:
response.setHeader('Location', 'http://www.google.com');
For some reason, after checking the redirection pack with Wireshark, the 'Location' header has 'https://www.google.com' instead.
Is there any configuration I can change so Tomcat respects the protocol I set in the header?