Skip to content

Commit 7201bf1

Browse files
authored
Bump netty to 4.1.60.Final AsyncHttpClient#1775 (AsyncHttpClient#1782)
* Bump netty to 4.1.60.Final AsyncHttpClient#1775 * Change tested header for MultipleHeaderTests from Content-Length to X-Duplicated-Header as Netty added normalization against the Content-Length header
1 parent 576decf commit 7201bf1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client/src/test/java/org/asynchttpclient/MultipleHeaderTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public void setUpGlobal() throws Exception {
5353
socket.shutdownInput();
5454
if (req.endsWith("MultiEnt")) {
5555
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(socket.getOutputStream());
56-
outputStreamWriter.append("HTTP/1.0 200 OK\n" + "Connection: close\n" + "Content-Type: text/plain; charset=iso-8859-1\n" + "Content-Length: 2\n"
57-
+ "Content-Length: 1\n" + "\n0\n");
56+
outputStreamWriter.append("HTTP/1.0 200 OK\n" + "Connection: close\n" + "Content-Type: text/plain; charset=iso-8859-1\n" + "X-Duplicated-Header: 2\n"
57+
+ "X-Duplicated-Header: 1\n" + "\n0\n");
5858
outputStreamWriter.flush();
5959
socket.shutdownOutput();
6060
} else if (req.endsWith("MultiOther")) {
@@ -148,7 +148,7 @@ public State onStatusReceived(HttpResponseStatus objectHttpResponseStatus) {
148148
public State onHeadersReceived(HttpHeaders response) {
149149
try {
150150
int i = 0;
151-
for (String header : response.getAll(CONTENT_LENGTH)) {
151+
for (String header : response.getAll("X-Duplicated-Header")) {
152152
clHeaders[i++] = header;
153153
}
154154
} finally {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@
466466
<surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
467467
<source.property>1.8</source.property>
468468
<target.property>1.8</target.property>
469-
<netty.version>4.1.53.Final</netty.version>
469+
<netty.version>4.1.60.Final</netty.version>
470470
<slf4j.version>1.7.30</slf4j.version>
471471
<reactive-streams.version>1.0.3</reactive-streams.version>
472472
<activation.version>1.2.2</activation.version>

0 commit comments

Comments
 (0)