------------------------------------------------------------
revno: 6807
committer: Lars Helge Overland <[email protected]>
branch nick: dhis2
timestamp: Sun 2012-04-29 10:52:36 +0200
message:
  Added accept header requirement to datavalueset controller to distinguish 
between html and xml response
modified:
  
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/DataValueSetController.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/controller/DataValueSetController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/DataValueSetController.java	2012-04-19 16:40:00 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/DataValueSetController.java	2012-04-29 08:52:36 +0000
@@ -63,7 +63,7 @@
     @Autowired
     private DataValueSetService dataValueSetService;
     
-    @RequestMapping( method = RequestMethod.GET )
+    @RequestMapping( method = RequestMethod.GET, headers = {"Accept=text/html"} )
     public String getDataValueSets( Model model ) throws Exception
     {
         DataValueSets dataValueSets = new DataValueSets();

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to