diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-03 15:18:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-06 11:45:56 +0200 |
commit | 402c8f5f1efd053cc69556d63999955b3af4f41d (patch) | |
tree | 6f5dd611fa39962511feeaf1802d3776217f84fe /xmlsecurity/test_docs | |
parent | 7cba598a7ddcf02771ed31c8d8fce6f7e02ef715 (diff) |
Java cleanup, close file handles when done with them
Change-Id: I79e6e0b8f53ae6f232c34aa8e833853d2ec24cf0
Diffstat (limited to 'xmlsecurity/test_docs')
-rw-r--r-- | xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java b/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java index 8a604fad0310..a9bd3cee9977 100644 --- a/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java +++ b/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java @@ -142,6 +142,7 @@ class MyHandler implements HttpHandler { byte[] data = new byte[(int) fileRequest.length()]; FileInputStream fr = new FileInputStream(fileRequest); int count = fr.read(data); + fr.close(); //set the Content-type header Headers h = xchange.getResponseHeaders(); |