← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18440: force text/cache-manifest mimetype for .appcache files

 

------------------------------------------------------------
revno: 18440
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-02-27 12:35:21 +0700
message:
  force text/cache-manifest mimetype for .appcache files
modified:
  dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/servlet/filter/AppCacheFilter.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-commons/src/main/java/org/hisp/dhis/servlet/filter/AppCacheFilter.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/servlet/filter/AppCacheFilter.java	2015-02-27 05:11:16 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/servlet/filter/AppCacheFilter.java	2015-02-27 05:35:21 +0000
@@ -69,6 +69,7 @@
             CharResponseWrapper responseWrapper = new CharResponseWrapper( response );
 
             chain.doFilter( request, responseWrapper );
+            responseWrapper.setContentType( "text/cache-manifest" );
 
             SystemInfo systemInfo = systemService.getSystemInfo();