Changeset 86b3b13


Ignore:
Timestamp:
Feb 20, 2018 4:53:31 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
33ea4cf
Parents:
b77524c
Message:

Console: Change all 302s to 303 or 307
Eepget: Handle 308

Files:
9 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    rb77524c r86b3b13  
    13691369            buf.append(p.replace("&amp;", "&"));  // no you don't html escape the redirect header
    13701370        resp.setHeader("Location", buf.toString());
    1371         resp.sendError(302, "Moved");
     1371        resp.sendError(303, "Received");
    13721372    }
    13731373
  • apps/routerconsole/jsp/dns.jsp

    rb77524c r86b3b13  
    88    boolean testIFrame = tester.allowIFrame(request.getHeader("User-Agent"));
    99    if (!testIFrame) {
    10         response.setStatus(302);
     10        response.setStatus(307);
    1111        response.setHeader("Location", "/susidns/index");
    1212    } else {
  • apps/routerconsole/jsp/graph.jsp

    rb77524c r86b3b13  
    2323    if (stat == null) {
    2424        // probably because restart or shutdown was clicked
    25         response.setStatus(302);
     25        response.setStatus(307);
    2626        response.setHeader("Location", "/graphs");
    2727        return;
  • apps/routerconsole/jsp/i2ptunnelmgr.jsp

    rb77524c r86b3b13  
    88    boolean testIFrame = tester.allowIFrame(request.getHeader("User-Agent"));
    99    if (!testIFrame) {
    10         response.setStatus(302);
     10        response.setStatus(307);
    1111        response.setHeader("Location", "/i2ptunnel/");
    1212    } else {
  • apps/routerconsole/jsp/index.jsp

    rb77524c r86b3b13  
    66    //  while preserving any query parameters
    77    //
    8     response.setStatus(302);
     8    response.setStatus(307);
    99    String req = request.getRequestURL().toString();
    1010    StringBuilder buf = new StringBuilder(128);
  • apps/routerconsole/jsp/torrents.jsp

    rb77524c r86b3b13  
    99    boolean embedApp = tester.embedApps();
    1010    if (!testIFrame || !embedApp) {
    11         response.setStatus(302);
     11        response.setStatus(307);
    1212        response.setHeader("Location", "/i2psnark/");
    1313    } else {
  • apps/routerconsole/jsp/webmail.jsp

    rb77524c r86b3b13  
    99    boolean embedApp = tester.embedApps();
    1010    if (!testIFrame || !embedApp) {
    11         response.setStatus(302);
     11        response.setStatus(307);
    1212        response.setHeader("Location", "/susimail/susimail");
    1313    } else {
  • apps/susimail/src/src/i2p/susi/webmail/WebMail.java

    rb77524c r86b3b13  
    22882288                        buf.append(q.replace("&amp;", "&"));  // no you don't html escape the redirect header
    22892289                resp.setHeader("Location", buf.toString());
    2290                 resp.sendError(302, "Moved");
     2290                resp.sendError(303, "Received");
    22912291                Debug.debug(Debug.DEBUG, "P-R-G to " + q);
    22922292        }
  • core/java/src/net/i2p/util/EepGet.java

    rb77524c r86b3b13  
    956956            case 303:
    957957            case 307:
     958            case 308:
    958959                _alreadyTransferred = 0;
    959960                rcOk = true;
Note: See TracChangeset for help on using the changeset viewer.