diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index 41f691db..ef9117d7 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -919,7 +919,7 @@ public class CaldavConnection extends AbstractConnection { public void sendUnauthorized() throws IOException { HashMap headers = new HashMap(); headers.put("WWW-Authenticate", "Basic realm=\"" + BundleMessage.format("UI_DAVMAIL_GATEWAY") + '\"'); - sendHttpResponse(HttpStatus.SC_UNAUTHORIZED, headers, null, (byte[]) null, false); + sendHttpResponse(HttpStatus.SC_UNAUTHORIZED, headers, null, (byte[]) null, true); } /** @@ -1379,7 +1379,6 @@ public class CaldavConnection extends AbstractConnection { */ protected class ChunkedResponse { Writer writer; - String contentType; protected ChunkedResponse(int status, String contentType) throws IOException { writer = new OutputStreamWriter(new BufferedOutputStream(new OutputStream() {