mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1156392 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
caca105072
commit
a05c249800
|
@ -46,7 +46,7 @@ import org.slf4j.LoggerFactory;
|
|||
* read-permission-role and write-permission-role are defined then all requests
|
||||
* are authorized using the defined roles. Also GET methods are authorized.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @author Aleksi Kallio
|
||||
*/
|
||||
public class RestFilter implements Filter {
|
||||
|
@ -179,8 +179,9 @@ public class RestFilter implements Filter {
|
|||
IOHelper.copyInputStream(request.getInputStream(), out);
|
||||
} catch (IOException e) {
|
||||
LOG.warn("Exception occured" , e);
|
||||
out.close();
|
||||
throw e;
|
||||
} finally {
|
||||
out.close();
|
||||
}
|
||||
|
||||
response.setStatus(HttpURLConnection.HTTP_NO_CONTENT); // we return no
|
||||
|
|
Loading…
Reference in New Issue