Feature Request: smart response.setHeader() method
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Undecided
|
Nicolas Leroux | |||
1.1 |
Fix Committed
|
Undecided
|
Nicolas Leroux |
Bug Description
Hi,
response.
But there can be smart mechanism for some specific HTTP headers. For instance:
"Content-Type" makes duplicate record:
Test-Case:
Controller:
-------
public static void helloText() {
try {
response.
response.
} catch (Exception e) {
}
}
Request:
-------
GET /Application/
Host: localhost:9000
Connection: close
Response:
-------
HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: close
Content-Length: 12
Content-Type: text/plain; charset=utf-8
Content-Type: text/html; charset=utf-8
Date: Mon, 11 Jan 2010 19:36:39 GMT
Server: Play! Framework;dev
Set-Cookie: PLAY_ERRORS=; Path=/
Set-Cookie: PLAY_FLASH=; Path=/
Set-Cookie: PLAY_SESSION=
known malfunction:
Apache mod_proxy deletes the second Content-Type header. So we can see the files as plain text.
description: | updated |
Changed in play: | |
assignee: | nobody → Nicolas (nicolas-lunatech) |
milestone: | none → 1.0.1 |
Thanks for the bug report.