aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Main.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-12-14 00:43:10 +0700
committerGravatar Ugnich Anton2013-12-14 00:43:10 +0700
commitf4a45264cb8f0cfeacdb89ce9bf4c60474923f80 (patch)
tree47a7cfd203fff913c05bb83f8968e9be26c8c3b2 /src/java/com/juick/http/www/Main.java
parent174f7d40d76ad138dbe2ffa81dd0e2d7cdaccd24 (diff)
getVisitorUser sent X-Username header
Diffstat (limited to 'src/java/com/juick/http/www/Main.java')
-rw-r--r--src/java/com/juick/http/www/Main.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/juick/http/www/Main.java b/src/java/com/juick/http/www/Main.java
index 249ae53c..c7295ce6 100644
--- a/src/java/com/juick/http/www/Main.java
+++ b/src/java/com/juick/http/www/Main.java
@@ -111,14 +111,14 @@ public class Main extends HttpServlet {
String uri = request.getRequestURI();
if (uri.equals("/")) {
- com.juick.User visitor = Utils.getVisitorUser(sql, request);
+ com.juick.User visitor = Utils.getVisitorUser(sql, request, response);
if (visitor == null) {
login.doGetLoginForm(sql, request, response);
} else {
home.doGet(sql, sqlSearch, request, response, visitor);
}
} else if (uri.equals("/post")) {
- com.juick.User visitor = Utils.getVisitorUser(sql, request);
+ com.juick.User visitor = Utils.getVisitorUser(sql, request, response);
if (visitor != null) {
pagesNewMessage.doGetNewMessage(sql, request, response, visitor);
} else {