Added realm id to the WWW-Authenticate header value to fix a problem

when trying to access the WebDAV server using OpenOffice.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2109 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2006-01-13 15:27:20 +00:00
parent 6f51f49abc
commit 550e444c26

View File

@@ -166,7 +166,7 @@ public class AuthenticationFilter implements Filter
{
// No user/ticket, force the client to prompt for logon details
httpResp.setHeader("WWW-Authenticate", "BASIC");
httpResp.setHeader("WWW-Authenticate", "BASIC realm=\"Alfresco DAV Server\"");
httpResp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
httpResp.flushBuffer();