Fossil SCM

Force the method to be /xfer if the content type is application/x-fossil.

drh 2010-02-05 16:57 trunk
Commit 94bb313444b0165e879560c90899dae2126ab598
1 file changed +3
+3
--- src/main.c
+++ src/main.c
@@ -678,10 +678,13 @@
678678
}
679679
680680
/* Find the page that the user has requested, construct and deliver that
681681
** page.
682682
*/
683
+ if( g.zContentType && memcmp(g.zContentType, "application/x-fossil", 20)==0 ){
684
+ zPathInfo = "/xfer";
685
+ }
683686
set_base_url();
684687
if( zPathInfo==0 || zPathInfo[0]==0
685688
|| (zPathInfo[0]=='/' && zPathInfo[1]==0) ){
686689
fossil_redirect_home();
687690
}else{
688691
--- src/main.c
+++ src/main.c
@@ -678,10 +678,13 @@
678 }
679
680 /* Find the page that the user has requested, construct and deliver that
681 ** page.
682 */
 
 
 
683 set_base_url();
684 if( zPathInfo==0 || zPathInfo[0]==0
685 || (zPathInfo[0]=='/' && zPathInfo[1]==0) ){
686 fossil_redirect_home();
687 }else{
688
--- src/main.c
+++ src/main.c
@@ -678,10 +678,13 @@
678 }
679
680 /* Find the page that the user has requested, construct and deliver that
681 ** page.
682 */
683 if( g.zContentType && memcmp(g.zContentType, "application/x-fossil", 20)==0 ){
684 zPathInfo = "/xfer";
685 }
686 set_base_url();
687 if( zPathInfo==0 || zPathInfo[0]==0
688 || (zPathInfo[0]=='/' && zPathInfo[1]==0) ){
689 fossil_redirect_home();
690 }else{
691

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button