Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | According to RFC 1952, MTIME=0 means no time stamp is available |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
518896951a500e3e819c1dee76cdc168 |
| User & Date: | jan.nijtmans 2013-12-22 10:21:44.140 |
Context
|
2013-12-23
| ||
| 11:37 | Update the built-in SQLite to the latest 3.8.3 alpha from upstream, including the removal of a stray tab character from the source code. ... (check-in: 5f08392169 user: drh tags: trunk) | |
| 06:53 | Fix genealogy links from the /info page (Thanks to Andy Bradford noticing this) ... (check-in: fd0507e949 user: jan.nijtmans tags: hidden-tag) | |
|
2013-12-22
| ||
| 10:21 | According to RFC 1952, MTIME=0 means no time stamp is available ... (check-in: 518896951a user: jan.nijtmans tags: trunk) | |
| 01:33 | Send gzipped HTTP responses to clients that support it. ... (check-in: 3f4b5d32f1 user: joel tags: trunk) | |
Changes
Changes to src/cgi.c.
| ︙ | ︙ | |||
358 359 360 361 362 363 364 |
cgi_combine_header_and_body();
blob_compress(&cgiContent[0], &cgiContent[0]);
}
if( iReplyStatus != 304 ) {
if( is_gzippable() ){
int i;
| < < < | | 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 |
cgi_combine_header_and_body();
blob_compress(&cgiContent[0], &cgiContent[0]);
}
if( iReplyStatus != 304 ) {
if( is_gzippable() ){
int i;
gzip_begin(0);
for( i=0; i<2; i++ ){
int size = blob_size(&cgiContent[i]);
if( size>0 ) gzip_step(blob_buffer(&cgiContent[i]), size);
blob_reset(&cgiContent[i]);
}
gzip_finish(&cgiContent[0]);
fprintf(g.httpOut, "Content-Encoding: gzip\r\n");
|
| ︙ | ︙ |
Changes to src/gzip.c.
| ︙ | ︙ | |||
53 54 55 56 57 58 59 | char aHdr[10]; assert( gzip.eState==0 ); blob_zero(&gzip.out); aHdr[0] = 0x1f; aHdr[1] = 0x8b; aHdr[2] = 8; aHdr[3] = 0; | | | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
char aHdr[10];
assert( gzip.eState==0 );
blob_zero(&gzip.out);
aHdr[0] = 0x1f;
aHdr[1] = 0x8b;
aHdr[2] = 8;
aHdr[3] = 0;
if( now==-1 ){
now = db_int64(0, "SELECT (julianday('now') - 2440587.5)*86400.0");
}
put32(&aHdr[4], now&0xffffffff);
aHdr[8] = 2;
aHdr[9] = 255;
blob_append(&gzip.out, aHdr, 10);
gzip.iCRC = 0;
|
| ︙ | ︙ | |||
124 125 126 127 128 129 130 |
** Compress a file using gzip.
*/
void test_gzip_cmd(void){
Blob b;
char *zOut;
if( g.argc!=3 ) usage("FILENAME");
sqlite3_open(":memory:", &g.db);
| | | 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
** Compress a file using gzip.
*/
void test_gzip_cmd(void){
Blob b;
char *zOut;
if( g.argc!=3 ) usage("FILENAME");
sqlite3_open(":memory:", &g.db);
gzip_begin(-1);
blob_read_from_file(&b, g.argv[2]);
zOut = mprintf("%s.gz", g.argv[2]);
gzip_step(blob_buffer(&b), blob_size(&b));
blob_reset(&b);
gzip_finish(&b);
blob_write_to_file(&b, zOut);
blob_reset(&b);
fossil_free(zOut);
}
|
Changes to src/tar.c.
| ︙ | ︙ | |||
425 426 427 428 429 430 431 |
int i;
Blob zip;
Blob file;
if( g.argc<3 ){
usage("ARCHIVE FILE....");
}
sqlite3_open(":memory:", &g.db);
| | | 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 |
int i;
Blob zip;
Blob file;
if( g.argc<3 ){
usage("ARCHIVE FILE....");
}
sqlite3_open(":memory:", &g.db);
tar_begin(-1);
for(i=3; i<g.argc; i++){
blob_zero(&file);
blob_read_from_file(&file, g.argv[i]);
tar_add_file(g.argv[i], &file,
file_wd_perm(g.argv[i]), file_wd_mtime(g.argv[i]));
blob_reset(&file);
}
|
| ︙ | ︙ |