Changeset cdc184c


Ignore:
Timestamp:
Aug 21, 2009 3:37:13 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
22c0b8e
Parents:
37437da3
Message:
  • HTTP Proxy: Get mime type right for .ico
  • DataHelper?: Cleanup
Files:
2 edited

Legend:

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

    r37437da3 rcdc184c  
    844844                if (filename.endsWith(".css"))
    845845                    type = "text/css";
     846                else if (filename.endsWith(".ico"))
     847                    type = "image/x-icon";
    846848                else if (filename.endsWith(".png"))
    847849                    type = "image/png";
  • core/java/src/net/i2p/data/DataHelper.java

    r37437da3 rcdc184c  
    522522     * size for a string allowed by the spec is 255 bytes.
    523523     *
    524      * WARNING - this method destroys the encoding
     524     * WARNING - this method destroys the encoding, and therefore violates
     525     * the data structure spec.
    525526     *
    526527     * @param out stream to write string
     
    538539            if (len > 255)
    539540                throw new DataFormatException("The I2P data spec limits strings to 255 bytes or less, but this is "
    540                                               + string.length() + " [" + string + "]");
     541                                              + len + " [" + string + "]");
    541542            writeLong(out, 1, len);
    542543            for (int i = 0; i < len; i++)
     
    567568            if (len > 255)
    568569                throw new DataFormatException("The I2P data spec limits strings to 255 bytes or less, but this is "
    569                                               + string.length() + " [" + string + "]");
     570                                              + len + " [" + string + "]");
    570571            writeLong(out, 1, len);
    571572            out.write(raw);
Note: See TracChangeset for help on using the changeset viewer.