Fossil

Check-in [94bb3134]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Force the method to be /xfer if the content type is application/x-fossil.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 94bb313444b0165e879560c90899dae2126ab598
User & Date: drh 2010-02-05 16:57:58.000
References
2019-04-06
19:03
Sync and Clone HTTP requests omit the extra /xfer path element from the end. This should work fine with all versions of Fossil server published since 2010, but might require that the /xfer path element be added manually to the URL for server instances that predate check-in [94bb313444b0165e]. ... (check-in: 19c60b7f user: drh tags: trunk)
2010-02-16
19:44 New ticket [993287b3] Patch to allow sidebox to be skinable.. ... (artifact: 6a3d4a69 user: anonymous)
Context
2010-02-05
21:09
Accept date/time strings as a valid tag. They resolve to the most recent check-in prior to the given date/time. ... (check-in: 93827b84 user: drh tags: trunk)
16:57
Force the method to be /xfer if the content type is application/x-fossil. ... (check-in: 94bb3134 user: drh tags: trunk)
16:22
The RSS feed is restricted to the permissions granted to user 'nobody'. Ticket [09ba8cea6f] ... (check-in: 78a6270f user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
676
677
678
679
680
681
682



683
684
685
686
687
688
689
          zRepo, zPathInfo, zNewScript);
    }
  }

  /* Find the page that the user has requested, construct and deliver that
  ** page.
  */



  set_base_url();
  if( zPathInfo==0 || zPathInfo[0]==0 
      || (zPathInfo[0]=='/' && zPathInfo[1]==0) ){
    fossil_redirect_home();
  }else{
    zPath = mprintf("%s", zPathInfo);
  }







>
>
>







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);
  }