Changeset a3886b0


Ignore:
Timestamp:
Apr 21, 2013 1:30:22 PM (8 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
d0fa9f8
Parents:
b872764
Message:

Use HTTP 404 for Bad URI (c/f jetty, lighttpd)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java

    rb872764 ra3886b0  
    164164            "The I2P HTTP Proxy supports http:// requests ONLY. Other protocols such as https:// and ftp:// are not allowed.<BR>").getBytes();
    165165    private final static byte[] ERR_BAD_URI =
    166                                 ("HTTP/1.1 400 Bad URI\r\n" +
     166                                ("HTTP/1.1 404 Bad URI\r\n" +
    167167            "Content-Type: text/html; charset=iso-8859-1\r\n" +
    168168            "Cache-control: no-cache\r\n" +
  • installer/resources/proxy/baduri-header.ht

    rb872764 ra3886b0  
    1 HTTP/1.1 400 Bad URI
     1HTTP/1.1 404 Bad URI
    22Content-Type: text/html; charset=UTF-8
    33Cache-control: no-cache
Note: See TracChangeset for help on using the changeset viewer.