aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Discover.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/juick/http/www/Discover.java')
-rw-r--r--src/java/com/juick/http/www/Discover.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/juick/http/www/Discover.java b/src/java/com/juick/http/www/Discover.java
index 7fd232a2..d80bffdc 100644
--- a/src/java/com/juick/http/www/Discover.java
+++ b/src/java/com/juick/http/www/Discover.java
@@ -47,7 +47,7 @@ public class Discover {
paramTag = TagQueries.getTag(sql, paramTagStr, false);
}
if (paramTag == null) {
- response.sendError(404);
+ Errors.doGet404(sql, request, response);
return;
}
@@ -68,7 +68,7 @@ public class Discover {
response.setContentType("text/html; charset=UTF-8");
PrintWriter out = response.getWriter();
try {
- String canonical = "";
+ String canonical = null;
if (!paramTag.Name.equals(paramTagStr) && paramBefore == 0) {
canonical = "<link rel=\"canonical\" href=\"http://juick.com/tag/" + URLEncoder.encode(paramTag.Name, "UTF-8") + "\"/>";
}