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.
Commit
aca3f562505247aeca38ee0519d6894269e5ac12a1555acabe6f7e9b38afa08c
Parent
87529b45a751b20…
1 file changed
+2
-2
+2
-2
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -741,12 +741,12 @@ | ||
| 741 | 741 | fossil_warning("malformed redirect: %s", zLine); |
| 742 | 742 | goto write_err; |
| 743 | 743 | } |
| 744 | 744 | j = strlen(zLine) - 1; |
| 745 | 745 | 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; | |
| 748 | 748 | } |
| 749 | 749 | if( (mHttpFlags & HTTP_QUIET)==0 ){ |
| 750 | 750 | fossil_print("redirect with status %d to %s\n", rc, &zLine[i]); |
| 751 | 751 | } |
| 752 | 752 | if( g.url.isFile || g.url.isSsh ){ |
| 753 | 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 -= 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 |