httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Poeml <po...@suse.de>
Subject [PATCH] 1.3: fix Content-Length in 416 response for files >2GB
Date Thu, 28 Feb 2002 18:35:18 GMT
Hi, 

the attached patch for 1.3 fixes the Content-Length header in the 416
"range not satisfiable" response, that shows an overflow with files
larger than 2 GB. 

Note that while this fix "makes it work", there are likely other places
where the incorrect number still shows up, like in the log files.

Details:
 - clength should match the off_t type of st_size, the file size as
   returned with stat(2).
 - Just to be sure, it is casted to AP_LONGEST_LONG before giving it out. 

Peter

-- 
VFS: Busy inodes after unmount. Self-destruct in 5 seconds.  Have a nice day...

Mime
View raw message