From: Matti Tahvonen Date: Tue, 27 May 2008 07:25:25 +0000 (+0000) Subject: removed obsolete code due #1730 was fixed, cache time for response html also. X-Git-Tag: 6.7.0.beta1~4695 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5754180efdd161f30f9e3cf855f8f90465406cfc;p=vaadin-framework.git removed obsolete code due #1730 was fixed, cache time for response html also. svn changeset:4640/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/ui/LoginForm.java b/src/com/itmill/toolkit/ui/LoginForm.java index 2e1f85b769..34aea8ad2c 100644 --- a/src/com/itmill/toolkit/ui/LoginForm.java +++ b/src/com/itmill/toolkit/ui/LoginForm.java @@ -49,15 +49,12 @@ public class LoginForm extends CustomComponent { } public String getFilename() { - return "login.html"; + return "login"; } public DownloadStream getStream() { - DownloadStream downloadStream = new DownloadStream( - new ByteArrayInputStream(getLoginHTML()), getMIMEType(), - getFilename()); - downloadStream.setCacheTime(getCacheTime()); - return downloadStream; + return new DownloadStream(new ByteArrayInputStream(getLoginHTML()), + getMIMEType(), getFilename()); } public String getMIMEType() { @@ -93,8 +90,11 @@ public class LoginForm extends CustomComponent { if (window != null) { window.removeURIHandler(this); } - return new DownloadStream(new ByteArrayInputStream(responce - .getBytes()), "text/html", "loginSuccesfull.html"); + DownloadStream downloadStream = new DownloadStream( + new ByteArrayInputStream(responce.getBytes()), "text/html", + "loginSuccesfull"); + downloadStream.setCacheTime(-1); + return downloadStream; } };