forked from I2P_Developers/i2p.i2p
Console: Remove calls to deprecated two-arg setStatus()
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
final String ERROR_MESSAGE = (String) request.getAttribute("javax.servlet.error.message");
|
||||
if (ERROR_CODE != null && ERROR_MESSAGE != null) {
|
||||
// this is deprecated but we don't want sendError()
|
||||
response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE);
|
||||
//response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE);
|
||||
response.setStatus(ERROR_CODE.intValue());
|
||||
}
|
||||
// If it can't find the iframe or viewtheme.jsp I wonder if the whole thing blows up...
|
||||
%>
|
||||
|
@@ -13,7 +13,8 @@
|
||||
final Throwable ERROR_THROWABLE = (Throwable) request.getAttribute("javax.servlet.error.exception");
|
||||
if (ERROR_CODE != null && ERROR_MESSAGE != null) {
|
||||
// this is deprecated but we don't want sendError()
|
||||
response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE);
|
||||
//response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE);
|
||||
response.setStatus(ERROR_CODE.intValue());
|
||||
}
|
||||
%>
|
||||
<html><head>
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<%@page pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<%
|
||||
response.setStatus(404, "Not Found");
|
||||
response.setStatus(404);
|
||||
%>
|
||||
<html><head>
|
||||
<%@include file="css.jsi" %>
|
||||
|
@@ -19,7 +19,7 @@
|
||||
Searching...
|
||||
<%
|
||||
} else {
|
||||
response.setStatus(403, "Bad");
|
||||
response.setStatus(403);
|
||||
String query = request.getParameter("query");
|
||||
if (query == null || query.trim().length() <= 0) {
|
||||
%>
|
||||
|
Reference in New Issue
Block a user