Differences From Artifact [9cfc5cc672]:
- File src/main.c — part of check-in [49cffc0187] at 2010-02-03 14:36:27 on branch trunk — Add the --notfound option to the "http" and "server" command. For CGI, add configuration lines "directory:" and "notfound:". (user: drh size: 30588)
To Artifact [425b1f76e7]:
- File src/main.c — part of check-in [94bb313444] at 2010-02-05 16:57:58 on branch trunk — Force the method to be /xfer if the content type is application/x-fossil. (user: drh size: 30698) [more...]
| ︙ | |||
676 677 678 679 680 681 682 683 684 685 686 687 688 689 | 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 | + + + |
zRepo, zPathInfo, zNewScript);
}
}
/* Find the page that the user has requested, construct and deliver that
** page.
*/
if( g.zContentType && memcmp(g.zContentType, "application/x-fossil", 20)==0 ){
zPathInfo = "/xfer";
}
set_base_url();
if( zPathInfo==0 || zPathInfo[0]==0
|| (zPathInfo[0]=='/' && zPathInfo[1]==0) ){
fossil_redirect_home();
}else{
zPath = mprintf("%s", zPathInfo);
}
|
| ︙ |