diff --git a/spring-js-resources/src/main/resources/META-INF/web-resources/spring/Spring-Dojo.js b/spring-js-resources/src/main/resources/META-INF/web-resources/spring/Spring-Dojo.js index baabfb34..6cdda3f6 100644 --- a/spring-js-resources/src/main/resources/META-INF/web-resources/spring/Spring-Dojo.js +++ b/spring-js-resources/src/main/resources/META-INF/web-resources/spring/Spring-Dojo.js @@ -280,6 +280,10 @@ dojo.declare("Spring.RemotingHandler", Spring.AbstractRemotingHandler, { } return response; } + } else if ((dojo.string.trim(response).length == 0) && (ioArgs.xhr.status != 204) && (ioArgs.xhr.status != 205)) { + if (Spring.debug) { + Spring.remoting.showError('Received empty response with no Spring redirect headers. If this is intentional set the response status code to 204 or 205.'); + } } //Extract and store all