Repository: asterixdb Updated Branches: refs/heads/master 34f2384ea -> 4e90aac56
Set response status for web interface servlets Change-Id: Id4b5e153a8c589b666a44ae17bb05c69cfc3c9d9 Reviewed-on: https://asterix-gerrit.ics.uci.edu/1528 Sonar-Qube: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Reviewed-by: Till Westmann <ti...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/4e90aac5 Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/4e90aac5 Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/4e90aac5 Branch: refs/heads/master Commit: 4e90aac56dc6655ddaedf0babdc43d9c0980be49 Parents: 34f2384 Author: Abdullah Alamoudi <bamou...@gmail.com> Authored: Thu Feb 23 23:20:20 2017 -0800 Committer: Till Westmann <ti...@apache.org> Committed: Fri Feb 24 08:12:06 2017 -0800 ---------------------------------------------------------------------- .../main/java/org/apache/asterix/api/http/server/ApiServlet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/asterixdb/blob/4e90aac5/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/server/ApiServlet.java ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/server/ApiServlet.java b/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/server/ApiServlet.java index 234d134..7a33c0e 100644 --- a/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/server/ApiServlet.java +++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/server/ApiServlet.java @@ -113,6 +113,7 @@ public class ApiServlet extends AbstractServlet { String printJob = request.getParameter("print-job"); String executeQuery = request.getParameter("execute-query"); try { + response.setStatus(HttpResponseStatus.OK); HttpUtil.setContentType(response, ContentType.TEXT_HTML, Encoding.UTF8); } catch (IOException e) { LOGGER.log(Level.WARNING, "Failure setting content type", e); @@ -162,7 +163,7 @@ public class ApiServlet extends AbstractServlet { protected void get(IServletRequest request, IServletResponse response) { String resourcePath = null; String requestURI = request.getHttpRequest().uri(); - + response.setStatus(HttpResponseStatus.OK); if ("/".equals(requestURI)) { try { HttpUtil.setContentType(response, HttpUtil.ContentType.TEXT_HTML, HttpUtil.Encoding.UTF8);