File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
client/src/test/java/org/asynchttpclient Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 " + "\n 0\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 " + "\n 0\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 {
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments