Fossil SCM
Force the method to be /xfer if the content type is application/x-fossil.
Commit
94bb313444b0165e879560c90899dae2126ab598
Parent
78a6270fdc6ee90…
1 file changed
+3
+3
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -678,10 +678,13 @@ | ||
| 678 | 678 | } |
| 679 | 679 | |
| 680 | 680 | /* Find the page that the user has requested, construct and deliver that |
| 681 | 681 | ** page. |
| 682 | 682 | */ |
| 683 | + if( g.zContentType && memcmp(g.zContentType, "application/x-fossil", 20)==0 ){ | |
| 684 | + zPathInfo = "/xfer"; | |
| 685 | + } | |
| 683 | 686 | set_base_url(); |
| 684 | 687 | if( zPathInfo==0 || zPathInfo[0]==0 |
| 685 | 688 | || (zPathInfo[0]=='/' && zPathInfo[1]==0) ){ |
| 686 | 689 | fossil_redirect_home(); |
| 687 | 690 | }else{ |
| 688 | 691 |
| --- 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 |