Caldav: fix infinite loop with Sunbird 1.0pre with invalid credentials

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@627 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-07-23 09:21:34 +00:00
parent 056288d802
commit b9f9bfce9a
1 changed files with 2 additions and 2 deletions

View File

@ -703,8 +703,8 @@ public class CaldavConnection extends AbstractConnection {
public void sendUnauthorized() throws IOException {
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("WWW-Authenticate", "Basic realm=\"" + Settings.getProperty("davmail.url") + '\"');
sendHttpResponse(HttpStatus.SC_UNAUTHORIZED, headers);
headers.put("WWW-Authenticate", "Basic realm=\"" + BundleMessage.format("UI_DAVMAIL_GATEWAY") + '\"');
sendHttpResponse(HttpStatus.SC_UNAUTHORIZED, headers, null, (byte[])null, false);
}
public void sendHttpResponse(int status) throws IOException {