httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ritcey, Benjamin" <Benjamin.Rit...@tfn.com>
Subject RE: 'Range: bytes=' request with starting byte greater than size of f ile
Date Thu, 26 Aug 1999 20:27:34 GMT
Dean Gaudet> want to submit a patch for it? :) 

Be careful of what you wish for... =)

Is it evil to use r->status as a flag; e.g.,

rangestatus = ap_set_byterange(r);

if (rangestatus == HTTP_RANGE_NOT_SATISFIABLE){
  ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r,
	    "First byte of range request beyond end of requested file in
request %s (Range: %s, length: %u)", 
		r->the_request, ap_table_get(r->headers_in,
"Range"),r->finfo.st_size);
  return HTTP_RANGE_NOT_SATISFIABLE;  
}



Mime
View raw message