https://issues.apache.org/bugzilla/show_bug.cgi?id=57396
Bug ID: 57396
Summary: req.getRequestURL().toString() return incorrect
Product: Tomcat 7
Version: 7.0.57
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Servlet & JSP API
Assignee: [email protected]
Reporter: [email protected]
Created attachment 32332
--> https://issues.apache.org/bugzilla/attachment.cgi?id=32332&action=edit
The debug info
Browser <---> https <---> Nginx <---> http <---> Tomcat
Above is the structure that I use, and I use
org.apache.catalina.filters.RemoteIpFilter to get the real ip and scheme.
But when I use the getRequestURL() method to get the url in the user's browser,
it returns a incorrect scheme.
For example, in user's browser, the location is https://www.example.com/foo/bar
, but the getRequestURL() method returns http://www.example.com/foo/bar .
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]