Fossil SCM

Back out the change that removed every trailing /xfer from the Location of a redirect: a repository whose own path ends in /xfer was then sent to the wrong place.

dmestas 2026-11-22 11:46 UTC small-fixes
Commit aca3f562505247aeca38ee0519d6894269e5ac12a1555acabe6f7e9b38afa08c
1 file changed +2 -2
+2 -2
--- src/http.c
+++ src/http.c
@@ -741,12 +741,12 @@
741741
fossil_warning("malformed redirect: %s", zLine);
742742
goto write_err;
743743
}
744744
j = strlen(zLine) - 1;
745745
while( j>4 && fossil_strcmp(&zLine[j-4],"/xfer")==0 ){
746
- j -= 5;
747
- zLine[j+1] = 0;
746
+ j -= 4;
747
+ zLine[j] = 0;
748748
}
749749
if( (mHttpFlags & HTTP_QUIET)==0 ){
750750
fossil_print("redirect with status %d to %s\n", rc, &zLine[i]);
751751
}
752752
if( g.url.isFile || g.url.isSsh ){
753753
--- src/http.c
+++ src/http.c
@@ -741,12 +741,12 @@
741 fossil_warning("malformed redirect: %s", zLine);
742 goto write_err;
743 }
744 j = strlen(zLine) - 1;
745 while( j>4 && fossil_strcmp(&zLine[j-4],"/xfer")==0 ){
746 j -= 5;
747 zLine[j+1] = 0;
748 }
749 if( (mHttpFlags & HTTP_QUIET)==0 ){
750 fossil_print("redirect with status %d to %s\n", rc, &zLine[i]);
751 }
752 if( g.url.isFile || g.url.isSsh ){
753
--- src/http.c
+++ src/http.c
@@ -741,12 +741,12 @@
741 fossil_warning("malformed redirect: %s", zLine);
742 goto write_err;
743 }
744 j = strlen(zLine) - 1;
745 while( j>4 && fossil_strcmp(&zLine[j-4],"/xfer")==0 ){
746 j -= 4;
747 zLine[j] = 0;
748 }
749 if( (mHttpFlags & HTTP_QUIET)==0 ){
750 fossil_print("redirect with status %d to %s\n", rc, &zLine[i]);
751 }
752 if( g.url.isFile || g.url.isSsh ){
753

Keyboard Shortcuts

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