Do not try to set response status if response is already committed. Change-Id: I9a7c2871c86eb53416b905324775f3ed961c8ae6 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>tags/v4.7.4.201809180905-r
@@ -150,7 +150,9 @@ public class ObjectUploadListener implements ReadListener { | |||
channel.close(); | |||
// TODO check if status 200 is ok for PUT request, HTTP foresees 204 | |||
// for successful PUT without response body | |||
response.setStatus(HttpServletResponse.SC_OK); | |||
if (!response.isCommitted()) { | |||
response.setStatus(HttpServletResponse.SC_OK); | |||
} | |||
} finally { | |||
context.complete(); | |||
} |