httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@liege.ICS.UCI.EDU>
Subject Re: proxy all-purpose patch
Date Tue, 10 Dec 1996 02:44:20 GMT
> --- 164,179 ----
>       memset(&server, '\0', sizeof(server));
>       server.sin_family = AF_INET;
>   
> ! /* We break the URL into host, port, path-search */
> ! 
> !     if ((desthost = table_get(r->headers_in, "Host:")) == NULL)

That should be "Host"

> --- 181,208 ----
>   	    memcpy(q, url, p-url);
>   	    q[p-url] = '\0';
>   	    url = p;
> ! 	    desthost = q;
>   	}
> +     }
>   
> !     p = strchr(desthost, ':');
> !     if (p != NULL)
> !     {
> !         *(p++) = '\0';
> !         destport = atoi(p);
> !         destportstr = p;
> !     }

Hmmm, what happens on a URL like  http://site:/blah/blah  ?

.....Roy

Mime
View raw message