Fossil SCM

If a "fossil sync" gets a 301 or 302 redirect, then change the saved remote URL to the redirected URL.

drh 2019-04-17 18:32 trunk
Commit e0026b6e461331c45400e59debf19d3d43a09c6001ab6e77eef578a0368a339d
1 file changed +1
+1
--- src/http.c
+++ src/http.c
@@ -345,10 +345,11 @@
345345
transport_close(&g.url);
346346
transport_global_shutdown(&g.url);
347347
fSeenHttpAuth = 0;
348348
if( g.zHttpAuth ) free(g.zHttpAuth);
349349
g.zHttpAuth = get_httpauth();
350
+ url_remember();
350351
return http_exchange(pSend, pReply, useLogin, maxRedirect);
351352
}else if( fossil_strnicmp(zLine, "content-type: ", 14)==0 ){
352353
if( fossil_strnicmp(&zLine[14], "application/x-fossil-debug", -1)==0 ){
353354
isCompressed = 0;
354355
}else if( fossil_strnicmp(&zLine[14],
355356
--- src/http.c
+++ src/http.c
@@ -345,10 +345,11 @@
345 transport_close(&g.url);
346 transport_global_shutdown(&g.url);
347 fSeenHttpAuth = 0;
348 if( g.zHttpAuth ) free(g.zHttpAuth);
349 g.zHttpAuth = get_httpauth();
 
350 return http_exchange(pSend, pReply, useLogin, maxRedirect);
351 }else if( fossil_strnicmp(zLine, "content-type: ", 14)==0 ){
352 if( fossil_strnicmp(&zLine[14], "application/x-fossil-debug", -1)==0 ){
353 isCompressed = 0;
354 }else if( fossil_strnicmp(&zLine[14],
355
--- src/http.c
+++ src/http.c
@@ -345,10 +345,11 @@
345 transport_close(&g.url);
346 transport_global_shutdown(&g.url);
347 fSeenHttpAuth = 0;
348 if( g.zHttpAuth ) free(g.zHttpAuth);
349 g.zHttpAuth = get_httpauth();
350 url_remember();
351 return http_exchange(pSend, pReply, useLogin, maxRedirect);
352 }else if( fossil_strnicmp(zLine, "content-type: ", 14)==0 ){
353 if( fossil_strnicmp(&zLine[14], "application/x-fossil-debug", -1)==0 ){
354 isCompressed = 0;
355 }else if( fossil_strnicmp(&zLine[14],
356

Keyboard Shortcuts

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