Check-in [6add2b1206]
Overview
Comment:Updated to correctly encode range
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6add2b1206e39f4a78e36ee9fcc0f8c44002c855
User & Date: rkeene on 2014-02-06 07:42:56
Other Links: manifest | tags
Context
2014-02-06
07:50
Added support for a non-blocking HTTP mode check-in: 145eda8451 user: rkeene tags: trunk
07:42
Updated to correctly encode range check-in: 6add2b1206 user: rkeene tags: trunk
06:47
Updated to keep track of sent bytes check-in: 5d3ae25128 user: rkeene tags: trunk
Changes

Modified filed.c from [b68d97d7c3] to [8a7d495917].

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",
					(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);







|







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: 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);