Skip to content

Commit

Permalink
set correct content type for AjaxProxy responses
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Jul 18, 2016
1 parent 9a34a48 commit a0dad7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Frameworks/Ajax/Ajax/Sources/er/ajax/AjaxProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ protected void addRequiredWebResources(WOResponse res) {
@Override
public WOActionResults handleRequest(WORequest request, WOContext context) {
WOResponse response = AjaxUtils.createResponse(request, context);
response.setHeader("application/json", "content-type");

String inputString = request.contentString();
log.debug("AjaxProxy.handleRequest: input = {}", inputString);
Expand Down

0 comments on commit a0dad7e

Please sign in to comment.