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

(-)test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java (-5 / +5 lines)
Lines 46-52 Link Here
46
46
47
        tomcat.start();
47
        tomcat.start();
48
48
49
        String request =
49
        String[] request = new String[]{
50
            "POST /echo-params.jsp HTTP/1.1" + SimpleHttpClient.CRLF +
50
            "POST /echo-params.jsp HTTP/1.1" + SimpleHttpClient.CRLF +
51
            "Host: any" + SimpleHttpClient.CRLF +
51
            "Host: any" + SimpleHttpClient.CRLF +
52
            "Transfer-encoding: chunked" + SimpleHttpClient.CRLF +
52
            "Transfer-encoding: chunked" + SimpleHttpClient.CRLF +
Lines 59-74 Link Here
59
            "4" + SimpleHttpClient.CRLF +
59
            "4" + SimpleHttpClient.CRLF +
60
            "&b=1" + SimpleHttpClient.CRLF +
60
            "&b=1" + SimpleHttpClient.CRLF +
61
            "0" + SimpleHttpClient.CRLF +
61
            "0" + SimpleHttpClient.CRLF +
62
            "x-trailer: TestTestTest" + SimpleHttpClient.CRLF +
62
            "x-trailer: Test", "TestTest0123456789abcdefghijABCDEFGHIJopqrstuvwxyz" + SimpleHttpClient.CRLF +
63
            SimpleHttpClient.CRLF;
63
            SimpleHttpClient.CRLF };
64
64
65
        TrailerClient client = new TrailerClient();
65
        TrailerClient client = new TrailerClient();
66
        client.setPort(getPort());
66
        client.setPort(getPort());
67
        client.setRequest(new String[] {request});
67
        client.setRequest(request);
68
68
69
        client.connect();
69
        client.connect();
70
        client.processRequest();
70
        client.processRequest();
71
        assertEquals("null7TestTestTest", client.getResponseBody());
71
        assertEquals("null7TestTestTest0123456789abcdefghijABCDEFGHIJopqrstuvwxyz", client.getResponseBody());
72
    }
72
    }
73
    
73
    
74
    public void testNoTrailingHeaders() throws Exception {
74
    public void testNoTrailingHeaders() throws Exception {

Return to bug 49860