452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
|
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
|
-
+
|
http_code,
date_current,
fileinfo->lastmod,
(unsigned long long) request->headers.range.length,
fileinfo->type
);
if (http_code == 206) {
fprintf(fp, "Content-Range: %llu-%llu/%llu\r\n",
fprintf(fp, "Content-Range: bytes %llu-%llu/%llu\r\n",
(unsigned long long) request->headers.range.offset,
(unsigned long long) (request->headers.range.offset + request->headers.range.length - 1),
(unsigned long long) fileinfo->len
);
}
fprintf(fp, "\r\n");
fflush(fp);
|