nicer status
This commit is contained in:
parent
c4edb58cab
commit
1d257b4abd
1 changed files with 2 additions and 1 deletions
|
|
@ -81,10 +81,11 @@ public class AlbumServlet
|
||||||
res.setContentType("image/jpeg");
|
res.setContentType("image/jpeg");
|
||||||
FileEntry e = (FileEntry)DirectoryEntry.getEntry(file);
|
FileEntry e = (FileEntry)DirectoryEntry.getEntry(file);
|
||||||
scaleImage(req, res, file, e.getThumbnail(), req.getParameter("size"));
|
scaleImage(req, res, file, e.getThumbnail(), req.getParameter("size"));
|
||||||
|
res.setStatus(HttpServletResponse.SC_OK);
|
||||||
|
return;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException("sadness", e);
|
throw new RuntimeException("sadness", e);
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
res.setStatus(HttpServletResponse.SC_NOT_FOUND);
|
res.setStatus(HttpServletResponse.SC_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue