This might not be a bug.
|
inline int |
|
url_canonicalize_port(int type, int port) |
|
{ |
|
if (port == 0) { |
|
if (type == URL_TYPE_HTTP) |
|
port = 80; |
|
else if (type == URL_TYPE_HTTPS) |
|
port = 443; |
|
} |
|
return (port); |
|
} |
When following redirects, if a relative redirect is returned without a scheme (or a host name), then this code cannot choose a port number to use when following the redirect.
It might be good if ATS would be updated to be smarter when following such redirects (use the previous client request's scheme/port).
This might not be a bug.
trafficserver/proxy/hdrs/URL.h
Lines 253 to 263 in a0b5bd7
When following redirects, if a relative redirect is returned without a scheme (or a host name), then this code cannot choose a port number to use when following the redirect.
It might be good if ATS would be updated to be smarter when following such redirects (use the previous client request's scheme/port).