You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streams.apache.org by ds...@apache.org on 2013/11/18 22:40:22 UTC
svn commit: r1543177 -
/incubator/streams/branches/webservice/streams-web/src/main/java/org/apache/streams/mvc/controller/StreamsWebController.java
Author: dsullivan
Date: Mon Nov 18 21:40:21 2013
New Revision: 1543177
URL: http://svn.apache.org/r1543177
Log:
adding reponse headers to filters
Modified:
incubator/streams/branches/webservice/streams-web/src/main/java/org/apache/streams/mvc/controller/StreamsWebController.java
Modified: incubator/streams/branches/webservice/streams-web/src/main/java/org/apache/streams/mvc/controller/StreamsWebController.java
URL: http://svn.apache.org/viewvc/incubator/streams/branches/webservice/streams-web/src/main/java/org/apache/streams/mvc/controller/StreamsWebController.java?rev=1543177&r1=1543176&r2=1543177&view=diff
==============================================================================
--- incubator/streams/branches/webservice/streams-web/src/main/java/org/apache/streams/mvc/controller/StreamsWebController.java (original)
+++ incubator/streams/branches/webservice/streams-web/src/main/java/org/apache/streams/mvc/controller/StreamsWebController.java Mon Nov 18 21:40:21 2013
@@ -137,6 +137,8 @@ public class StreamsWebController {
@ResponseBody
public ResponseEntity<String> getTags(@PathVariable("subscriberID") String subscriberID) {
try {
+ HttpHeaders responseHeaders = new HttpHeaders();
+ responseHeaders.setContentType(MediaType.APPLICATION_JSON);
return new ResponseEntity<String>(filtersService.getFilters(subscriberID), HttpStatus.OK);
} catch (Exception e) {
log.error(e);