httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: cvs commit: apache-1.3/src/main http_protocol.c
Date Mon, 25 May 1998 23:25:40 GMT
On 21 May 1998 brian@hyperreal.org wrote:

> brian       98/05/20 21:11:28
> 
>   Modified:    .        STATUS
>                src      CHANGES
>                src/main http_protocol.c
>   Log:
>   Ed Korthof's fixes for 408 and 414 protocol issues.
>    <Pine.GSO.3.95.980204191834.4314K-200000@aether.organic.com>
>   
...

>   +	r->request_time = time(NULL);
>   +	ap_die (HTTP_REQUEST_URI_TOO_LARGE, r);
>            return 0;
>        }
>    
>   @@ -720,16 +724,33 @@
>        while ((len = getline(field, MAX_STRING_LEN, c->client, 1)) > 0) {
>            char *copy = ap_palloc(r->pool, len + 1);
>            memcpy(copy, field, len + 1);
>   +	
>   +	if (!(value = strchr(copy, ':'))) {     /* Find the colon separator */
>   +	  /* if there's none, this request is screwed up.
>   +	   * a hack to deal with how we set HTTP_REQUEST_TIME_OUT earlier.*/
>   +	  if (r->status == HTTP_REQUEST_TIME_OUT)
>   +	    r->status = HTTP_OK;
>   +	  
>   +	  ap_die (HTTP_BAD_REQUEST, r);
>   +	  return;
>   +	}

This patch definately does not fit within the apache style guide.

Dean


Mime
View raw message