dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16266
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6149: Minor fix
------------------------------------------------------------
revno: 6149
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-03-02 10:17:50 +0100
message:
Minor fix
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/utils/ContextUtils.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/utils/ContextUtils.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/utils/ContextUtils.java 2012-03-02 08:21:54 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/utils/ContextUtils.java 2012-03-02 09:17:50 +0000
@@ -70,14 +70,14 @@
// -----------------------------------------------------------------
response.setHeader( "Cache-Control", "max-age=1" );
- response.addHeader( "Expires", DateUtils.getExpiredHttpDateString() );
+ response.setHeader( "Expires", DateUtils.getExpiredHttpDateString() );
}
if ( filename != null )
{
String type = attachment ? "attachment" : "inline";
- response.addHeader( "Content-Disposition", type + "; filename=\"" + filename + "\"" );
+ response.setHeader( "Content-Disposition", type + "; filename=\"" + filename + "\"" );
}
}