File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
client/src/test/java/org/asynchttpclient Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ public void setUpGlobal() throws Exception {
53
53
socket .shutdownInput ();
54
54
if (req .endsWith ("MultiEnt" )) {
55
55
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 " );
58
58
outputStreamWriter .flush ();
59
59
socket .shutdownOutput ();
60
60
} else if (req .endsWith ("MultiOther" )) {
@@ -148,7 +148,7 @@ public State onStatusReceived(HttpResponseStatus objectHttpResponseStatus) {
148
148
public State onHeadersReceived (HttpHeaders response ) {
149
149
try {
150
150
int i = 0 ;
151
- for (String header : response .getAll (CONTENT_LENGTH )) {
151
+ for (String header : response .getAll ("X-Duplicated-Header" )) {
152
152
clHeaders [i ++] = header ;
153
153
}
154
154
} finally {
You can’t perform that action at this time.
0 commit comments