From 5754180efdd161f30f9e3cf855f8f90465406cfc Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Tue, 27 May 2008 07:25:25 +0000 Subject: [PATCH] removed obsolete code due #1730 was fixed, cache time for response html also. svn changeset:4640/svn branch:trunk --- src/com/itmill/toolkit/ui/LoginForm.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; } }; -- 2.39.5