Fossil SCM

Improve diagnostic output for HTTP redirects.

mistachkin 2014-12-20 21:06 trunk
Commit a1e256cc83a9f798f2f97b6b3dc1b658f0983324
1 file changed +1 -1
+1 -1
--- src/http.c
+++ src/http.c
@@ -339,11 +339,11 @@
339339
j -= 4;
340340
zLine[j] = 0;
341341
}
342342
transport_close(&g.url);
343343
transport_global_shutdown(&g.url);
344
- fossil_print("redirect to %s\n", &zLine[i]);
344
+ fossil_print("redirect with status %d to %s\n", rc, &zLine[i]);
345345
url_parse(&zLine[i], 0);
346346
fSeenHttpAuth = 0;
347347
if( g.zHttpAuth ) free(g.zHttpAuth);
348348
g.zHttpAuth = get_httpauth();
349349
return http_exchange(pSend, pReply, useLogin, maxRedirect);
350350
--- src/http.c
+++ src/http.c
@@ -339,11 +339,11 @@
339 j -= 4;
340 zLine[j] = 0;
341 }
342 transport_close(&g.url);
343 transport_global_shutdown(&g.url);
344 fossil_print("redirect to %s\n", &zLine[i]);
345 url_parse(&zLine[i], 0);
346 fSeenHttpAuth = 0;
347 if( g.zHttpAuth ) free(g.zHttpAuth);
348 g.zHttpAuth = get_httpauth();
349 return http_exchange(pSend, pReply, useLogin, maxRedirect);
350
--- src/http.c
+++ src/http.c
@@ -339,11 +339,11 @@
339 j -= 4;
340 zLine[j] = 0;
341 }
342 transport_close(&g.url);
343 transport_global_shutdown(&g.url);
344 fossil_print("redirect with status %d to %s\n", rc, &zLine[i]);
345 url_parse(&zLine[i], 0);
346 fSeenHttpAuth = 0;
347 if( g.zHttpAuth ) free(g.zHttpAuth);
348 g.zHttpAuth = get_httpauth();
349 return http_exchange(pSend, pReply, useLogin, maxRedirect);
350

Keyboard Shortcuts

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