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:
parent
056288d802
commit
b9f9bfce9a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user