ASF Bugzilla – Attachment 34609 Details for
Bug 60573
Drop reason phrase of HTTP/1.1 100 (Expect: 100-continue)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Drop reason phrase
http-100-drop-reason-phrase.patch (text/plain), 1.46 KB, created by
Michael Osipov
on 2017-01-11 12:08:20 UTC
(
hide
)
Description:
Drop reason phrase
Filename:
MIME Type:
Creator:
Michael Osipov
Created:
2017-01-11 12:08:20 UTC
Size:
1.46 KB
patch
obsolete
>Index: java/org/apache/coyote/http11/Constants.java >=================================================================== >--- java/org/apache/coyote/http11/Constants.java (revision 1778271) >+++ java/org/apache/coyote/http11/Constants.java (working copy) >@@ -108,7 +108,7 @@ > public static final byte[] KEEPALIVE_BYTES = ByteChunk.convertToBytes(KEEPALIVE); > public static final String CHUNKED = "chunked"; > public static final byte[] ACK_BYTES = >- ByteChunk.convertToBytes("HTTP/1.1 100 Continue" + CRLF + CRLF); >+ ByteChunk.convertToBytes("HTTP/1.1 100 " + CRLF + CRLF); > public static final String TRANSFERENCODING = "Transfer-Encoding"; > public static final byte[] _200_BYTES = ByteChunk.convertToBytes("200"); > public static final byte[] _400_BYTES = ByteChunk.convertToBytes("400"); >Index: test/org/apache/tomcat/util/buf/TestByteChunk.java >=================================================================== >--- test/org/apache/tomcat/util/buf/TestByteChunk.java (revision 1778271) >+++ test/org/apache/tomcat/util/buf/TestByteChunk.java (working copy) >@@ -32,7 +32,7 @@ > > @Test > public void testConvertToBytes() throws UnsupportedEncodingException { >- String string = "HTTP/1.1 100 Continue\r\n"; >+ String string = "HTTP/1.1 100 \r\n\r\n"; > byte[] bytes = ByteChunk.convertToBytes(string); > byte[] expected = string.getBytes("ISO-8859-1"); > assertTrue(Arrays.equals(bytes, expected));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60573
: 34609