tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/servlets AuthServlet.java
Date Tue, 04 Apr 2000 01:23:15 GMT
craigmcc    00/04/03 18:23:15

  Modified:    src/share/org/apache/tomcat/servlets AuthServlet.java
  Log:
  Modify the authentication challenge to conform to RFC 2617.  It should
  create a header that looks like this:
  
  	WWW-Authenticate: Basic realm="{realm-name}"
  
  instead of
  
  	WWW-Authenticate Basic "{realm-name}"
  
  Confirmed operation with IE and Netscape.
  
  Submitted by:	Jason Kissinger <jlk@windchill.com>
  
  Revision  Changes    Path
  1.4       +2 -1      jakarta-tomcat/src/share/org/apache/tomcat/servlets/AuthServlet.java
  
  Index: AuthServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/servlets/AuthServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AuthServlet.java	2000/02/17 21:19:02	1.3
  +++ AuthServlet.java	2000/04/04 01:23:14	1.4
  @@ -109,7 +109,8 @@
   
   	// Default is BASIC
   	if(realm==null) realm="default";
  -	response.setHeader( "WWW-Authenticate", "Basic \"" + realm + "\"");
  +	response.setHeader( "WWW-Authenticate",
  +			    "Basic realm=\"" + realm + "\"");
   	response.sendError(HttpServletResponse.SC_UNAUTHORIZED);
       }
   
  
  
  

Mime
View raw message