Fossil SCM
Improve diagnostic output for HTTP redirects.
Commit
a1e256cc83a9f798f2f97b6b3dc1b658f0983324
Parent
2678d87d6a2c364…
1 file changed
+1
-1
+1
-1
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -339,11 +339,11 @@ | ||
| 339 | 339 | j -= 4; |
| 340 | 340 | zLine[j] = 0; |
| 341 | 341 | } |
| 342 | 342 | transport_close(&g.url); |
| 343 | 343 | 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]); | |
| 345 | 345 | url_parse(&zLine[i], 0); |
| 346 | 346 | fSeenHttpAuth = 0; |
| 347 | 347 | if( g.zHttpAuth ) free(g.zHttpAuth); |
| 348 | 348 | g.zHttpAuth = get_httpauth(); |
| 349 | 349 | return http_exchange(pSend, pReply, useLogin, maxRedirect); |
| 350 | 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 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 |