the original site Server header with it's own, which is not
allowed by RFC2616. Fixed. [Graham Leggett]
- *) Change ap_construct_url() so that the r->hostname is used in
- the URL instead of the value of the ServerName directive. This
- stops Apache redirecting to a different website name to the
- one the user typed in, which can break cookies and javascript
- handling on the client. [Graham Leggett]
-
*) Fixed the previous multiple-cookie fix in the proxy. Cookies
are broken in that they contain dates which in turn contain
commas - so merging and then unmerging them breaks Set-Cookie
request_rec *r)
{
unsigned port = ap_get_server_port(r);
- const char *host = r->hostname;
+ const char *host = ap_get_server_name(r);
if (ap_is_default_port(port, r)) {
return ap_pstrcat(p, ap_http_method(r), "://", host, uri, NULL);