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