View | Details | Raw Unified | Return to bug 60573
Collapse All | Expand All

(-)java/org/apache/coyote/http11/Constants.java (-1 / +1 lines)
Lines 108-114 Link Here
108
    public static final byte[] KEEPALIVE_BYTES = ByteChunk.convertToBytes(KEEPALIVE);
108
    public static final byte[] KEEPALIVE_BYTES = ByteChunk.convertToBytes(KEEPALIVE);
109
    public static final String CHUNKED = "chunked";
109
    public static final String CHUNKED = "chunked";
110
    public static final byte[] ACK_BYTES =
110
    public static final byte[] ACK_BYTES =
111
            ByteChunk.convertToBytes("HTTP/1.1 100 Continue" + CRLF + CRLF);
111
            ByteChunk.convertToBytes("HTTP/1.1 100 " + CRLF + CRLF);
112
    public static final String TRANSFERENCODING = "Transfer-Encoding";
112
    public static final String TRANSFERENCODING = "Transfer-Encoding";
113
    public static final byte[] _200_BYTES = ByteChunk.convertToBytes("200");
113
    public static final byte[] _200_BYTES = ByteChunk.convertToBytes("200");
114
    public static final byte[] _400_BYTES = ByteChunk.convertToBytes("400");
114
    public static final byte[] _400_BYTES = ByteChunk.convertToBytes("400");
(-)test/org/apache/tomcat/util/buf/TestByteChunk.java (-1 / +1 lines)
Lines 32-38 Link Here
32
32
33
    @Test
33
    @Test
34
    public void testConvertToBytes() throws UnsupportedEncodingException {
34
    public void testConvertToBytes() throws UnsupportedEncodingException {
35
        String string = "HTTP/1.1 100 Continue\r\n";
35
        String string = "HTTP/1.1 100 \r\n\r\n";
36
        byte[] bytes = ByteChunk.convertToBytes(string);
36
        byte[] bytes = ByteChunk.convertToBytes(string);
37
        byte[] expected = string.getBytes("ISO-8859-1");
37
        byte[] expected = string.getBytes("ISO-8859-1");
38
        assertTrue(Arrays.equals(bytes, expected));
38
        assertTrue(Arrays.equals(bytes, expected));

Return to bug 60573