fixing contentType in the response

This commit is contained in:
Francesco Mangiacrapa 2023-11-22 16:18:14 +01:00
parent 90192d2085
commit 9713bfb0a8
2 changed files with 4 additions and 0 deletions

View File

@ -546,6 +546,9 @@
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<dependent-module archiveName="geo-utility-1.3.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/geo-utility/geo-utility">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="geoportal-data-mapper-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/geoportal-data-mapper/geoportal-data-mapper">
<dependency-type>uses</dependency-type>
</dependent-module>

View File

@ -80,6 +80,7 @@ public class WatingServerActionServlet extends HttpServlet {
*/
protected void sendResponse(HttpServletResponse response, String action, String message, boolean waiting) throws IOException {
response.setStatus(HttpServletResponse.SC_OK);
response.setContentType("text/html");
response.getWriter().write(setHTMLMessage(action, message, waiting));
response.flushBuffer();
}