1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

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

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 {