Project

General

Profile

« Previous | Next » 

Revision 29606

fixed the content-type of an ajax call

View differences:

modules/dnet-modular-workflows-ui/trunk/src/main/java/eu/dnetlib/functionality/modular/ui/workflows/controllers/DnetParamValuesController.java
69 69

  
70 70
	private void sendResponse(final HttpServletResponse response, final List<DnetParamValue> values) throws IOException {
71 71
		Collections.sort(values);
72
		
73
		response.setContentType("application/json;charset=UTF-8");
74
		
72 75
		IOUtils.copy(new StringReader(new Gson().toJson(values)), response.getOutputStream());
73 76
	}
74 77
}

Also available in: Unified diff