Changeset d0fa9f8


Ignore:
Timestamp:
Apr 21, 2013 1:36:59 PM (8 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
a44e752
Parents:
a3886b0
Message:

And back to HTTP 403 for Bad URI (we are refusing to fulfill the request)

Files:
2 edited

Legend:

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

    ra3886b0 rd0fa9f8  
    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 404 Bad URI\r\n" +
     166                                ("HTTP/1.1 403 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

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