dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17262
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6807: Added accept header requirement to datavalueset controller to distinguish between html and xml re...
------------------------------------------------------------
revno: 6807
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
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();