Fossil SCM
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].
Commit
19c60b7fc9e2400e56a6f938bbad0e34ca746ca2eabdecac10945539f1f5e8c6
Parent
41974e0881d69af…
1 file changed
+1
-1
+1
-1
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -108,11 +108,11 @@ | ||
| 108 | 108 | if( i>0 && g.url.path[i-1]=='/' ){ |
| 109 | 109 | zSep = ""; |
| 110 | 110 | }else{ |
| 111 | 111 | zSep = "/"; |
| 112 | 112 | } |
| 113 | - blob_appendf(pHdr, "POST %s%sxfer/xfer HTTP/1.0\r\n", g.url.path, zSep); | |
| 113 | + blob_appendf(pHdr, "POST %s%s HTTP/1.0\r\n", g.url.path, zSep); | |
| 114 | 114 | if( g.url.proxyAuth ){ |
| 115 | 115 | blob_appendf(pHdr, "Proxy-Authorization: %s\r\n", g.url.proxyAuth); |
| 116 | 116 | } |
| 117 | 117 | if( g.zHttpAuth && g.zHttpAuth[0] ){ |
| 118 | 118 | const char *zCredentials = g.zHttpAuth; |
| 119 | 119 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -108,11 +108,11 @@ | |
| 108 | if( i>0 && g.url.path[i-1]=='/' ){ |
| 109 | zSep = ""; |
| 110 | }else{ |
| 111 | zSep = "/"; |
| 112 | } |
| 113 | blob_appendf(pHdr, "POST %s%sxfer/xfer HTTP/1.0\r\n", g.url.path, zSep); |
| 114 | if( g.url.proxyAuth ){ |
| 115 | blob_appendf(pHdr, "Proxy-Authorization: %s\r\n", g.url.proxyAuth); |
| 116 | } |
| 117 | if( g.zHttpAuth && g.zHttpAuth[0] ){ |
| 118 | const char *zCredentials = g.zHttpAuth; |
| 119 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -108,11 +108,11 @@ | |
| 108 | if( i>0 && g.url.path[i-1]=='/' ){ |
| 109 | zSep = ""; |
| 110 | }else{ |
| 111 | zSep = "/"; |
| 112 | } |
| 113 | blob_appendf(pHdr, "POST %s%s HTTP/1.0\r\n", g.url.path, zSep); |
| 114 | if( g.url.proxyAuth ){ |
| 115 | blob_appendf(pHdr, "Proxy-Authorization: %s\r\n", g.url.proxyAuth); |
| 116 | } |
| 117 | if( g.zHttpAuth && g.zHttpAuth[0] ){ |
| 118 | const char *zCredentials = g.zHttpAuth; |
| 119 |