Ignore:
Timestamp:
Aug 22, 2009 4:23:15 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
51fd4d7
Parents:
22c0b8e
Message:
  • Throw 403 instead of 404 from flags.jsp and viewstat.jsp so we don't render error.jsp
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/flags.jsp

    r22c0b8e r35c9e99  
    2626        cout.close();
    2727}
     28/*
     29 *  Send a 403 instead of a 404, because the server sends error.jsp
     30 *  for 404 errors, complete with the summary bar, which would be
     31 *  a huge load for a page full of flags if the user didn't have the
     32 *  flags directory for some reason.
     33 */
    2834if (!rendered)
    29     response.sendError(404, "Not found");
     35    response.sendError(403, "Flag not found");
    3036%>
Note: See TracChangeset for help on using the changeset viewer.