header_verbose_list: stop truncating file size in listing
This commit is contained in:
@@ -889,8 +889,8 @@ static int sendHeaders(HttpResponseNum responseNum)
|
||||
|
||||
if (config->ContentLength != -1) { /* file */
|
||||
strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod));
|
||||
len += sprintf(buf+len, "Last-Modified: %s\r\n%s %"OFF_FMT"\r\n",
|
||||
timeStr, "Content-length:", (off_t) config->ContentLength);
|
||||
len += sprintf(buf+len, "Last-Modified: %s\r\n%s %"OFF_FMT"d\r\n",
|
||||
timeStr, "Content-length:", config->ContentLength);
|
||||
}
|
||||
strcat(buf, "\r\n");
|
||||
len += 2;
|
||||
|
||||
Reference in New Issue
Block a user