Fossil SCM

Display the name of the server requesting HTTP Authorization to clarify interaction.

andybradford 2014-02-04 01:53 http-auth
Commit d581ef00574a91f3631de7e84b7aefe8198aef2c
1 file changed +2 -2
+2 -2
--- src/http.c
+++ src/http.c
@@ -133,12 +133,12 @@
133133
*/
134134
static int use_fossil_creds_for_httpauth_prompt(void){
135135
Blob x;
136136
char c;
137137
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,
140140
g.urlIsHttps==1 ? "encrypted HTTPS" : "unencrypted HTTP");
141141
prompt_user(zPrompt, &x);
142142
c = blob_str(&x)[0];
143143
blob_reset(&x);
144144
free(zPrompt);
145145
--- 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

Keyboard Shortcuts

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