Fossil SCM
Display the name of the server requesting HTTP Authorization to clarify interaction.
Commit
d581ef00574a91f3631de7e84b7aefe8198aef2c
Parent
6289a97e40315d0…
1 file changed
+2
-2
+2
-2
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -133,12 +133,12 @@ | ||
| 133 | 133 | */ |
| 134 | 134 | static int use_fossil_creds_for_httpauth_prompt(void){ |
| 135 | 135 | Blob x; |
| 136 | 136 | char c; |
| 137 | 137 | char *zPrompt = mprintf( |
| 138 | - "\nBasic Authorization over %s required to continue.\n" | |
| 139 | - "Use Fossil username and password (y/N)? ", | |
| 138 | + "\n%s requires Basic Authorization over %s.\n" | |
| 139 | + "Use Fossil username and password (y/N)? ", g.urlName, | |
| 140 | 140 | g.urlIsHttps==1 ? "encrypted HTTPS" : "unencrypted HTTP"); |
| 141 | 141 | prompt_user(zPrompt, &x); |
| 142 | 142 | c = blob_str(&x)[0]; |
| 143 | 143 | blob_reset(&x); |
| 144 | 144 | free(zPrompt); |
| 145 | 145 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -133,12 +133,12 @@ | |
| 133 | */ |
| 134 | static int use_fossil_creds_for_httpauth_prompt(void){ |
| 135 | Blob x; |
| 136 | char c; |
| 137 | char *zPrompt = mprintf( |
| 138 | "\nBasic Authorization over %s required to continue.\n" |
| 139 | "Use Fossil username and password (y/N)? ", |
| 140 | g.urlIsHttps==1 ? "encrypted HTTPS" : "unencrypted HTTP"); |
| 141 | prompt_user(zPrompt, &x); |
| 142 | c = blob_str(&x)[0]; |
| 143 | blob_reset(&x); |
| 144 | free(zPrompt); |
| 145 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -133,12 +133,12 @@ | |
| 133 | */ |
| 134 | static int use_fossil_creds_for_httpauth_prompt(void){ |
| 135 | Blob x; |
| 136 | char c; |
| 137 | char *zPrompt = mprintf( |
| 138 | "\n%s requires Basic Authorization over %s.\n" |
| 139 | "Use Fossil username and password (y/N)? ", g.urlName, |
| 140 | g.urlIsHttps==1 ? "encrypted HTTPS" : "unencrypted HTTP"); |
| 141 | prompt_user(zPrompt, &x); |
| 142 | c = blob_str(&x)[0]; |
| 143 | blob_reset(&x); |
| 144 | free(zPrompt); |
| 145 |