From: Ryan Bloom Date: Thu, 22 Feb 2001 23:52:51 +0000 (+0000) Subject: Use "Basic" authentication instead of "basic" in ab, as the spec says we X-Git-Tag: 2.0.12~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af067d08c39675d1f6a1fb6acc8ab4a756cffd03;p=thirdparty%2Fapache%2Fhttpd.git Use "Basic" authentication instead of "basic" in ab, as the spec says we should. PR: 7294 Submitted by: Andre Breiler git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88281 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 23e34dc0a82..8a1ef98d43a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.12-dev + *) Use "Basic" authentication instead of "basic" in ab, as the spec + says we should. [Andre Breiler ] + *) Fix a seg fault in mod_userdir.c. We used to use the pw structure without ever filling it out. This fixes PR 7271. [Taketo Kabe and diff --git a/support/ab.c b/support/ab.c index 48aa24e6412..8841d544f22 100644 --- a/support/ab.c +++ b/support/ab.c @@ -903,14 +903,14 @@ static void test(void) static void copyright(void) { if (!use_html) { - printf("This is ApacheBench, Version %s\n", AB_VERSION " <$Revision: 1.56 $> apache-2.0"); + printf("This is ApacheBench, Version %s\n", AB_VERSION " <$Revision: 1.57 $> apache-2.0"); printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n"); printf("Copyright (c) 1998-2001 The Apache Software Foundation, http://www.apache.org/\n"); printf("\n"); } else { printf("

\n"); - printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AB_VERSION, "$Revision: 1.56 $"); + printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AB_VERSION, "$Revision: 1.57 $"); printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
\n"); printf(" Copyright (c) 1998-2001 The Apache Software Foundation, http://www.apache.org/
\n"); printf("

\n

\n"); @@ -1128,7 +1128,7 @@ int main(int argc, const char * const argv[]) l=apr_base64_encode(tmp, optarg, strlen(optarg)); tmp[l]='\0'; - strncat(auth, "Authorization: basic ", sizeof(auth)); + strncat(auth, "Authorization: Basic ", sizeof(auth)); strncat(auth, tmp, sizeof(auth)); strncat(auth, "\r\n", sizeof(auth)); break; @@ -1141,7 +1141,7 @@ int main(int argc, const char * const argv[]) l=apr_base64_encode(tmp, optarg, strlen(optarg)); tmp[l]='\0'; - strncat(auth, "Proxy-Authorization: basic ", sizeof(auth)); + strncat(auth, "Proxy-Authorization: Basic ", sizeof(auth)); strncat(auth, tmp, sizeof(auth)); strncat(auth, "\r\n", sizeof(auth)); break;