Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[#1582] - Response only prints first value of each Header

  • Loading branch information...
commit 39c6a296615215e4156bacb06a4ec911c10219b6 1 parent b584e8e
Nicolas Leroux authored September 18, 2012
BIN  framework/lib/netty-3.4.2.Final.jar
Binary file not shown
BIN  framework/lib/netty-3.5.7.Final.jar
Binary file not shown
2  framework/src/play/server/PlayHandler.java
@@ -313,7 +313,7 @@ protected static void addToResponse(Response response, HttpResponse nettyRespons
313 313
         for (Map.Entry<String, Http.Header> entry : headers.entrySet()) {
314 314
             Http.Header hd = entry.getValue();
315 315
             for (String value : hd.values) {
316  
-                nettyResponse.setHeader(entry.getKey(), value);
  316
+                nettyResponse.addHeader(entry.getKey(), value);
317 317
             }
318 318
         }
319 319
         Map<String, Http.Cookie> cookies = response.cookies;

0 notes on commit 39c6a29

Please sign in to comment.
Something went wrong with that request. Please try again.