diff options
Diffstat (limited to 'bkucommon/src/main/java')
-rw-r--r-- | bkucommon/src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java b/bkucommon/src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java index 0c648a7e..4a715eee 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java @@ -181,7 +181,8 @@ public class XWWWFormUrlInputIterator implements Iterator<FormParameter> { // fill buffer if empty if (pos >= count) { if ((count = in.read(buf)) == -1) { - throw new IOException("Invalid URL encoding."); + urldec.close(); + throw new IOException("Invalid URL encoding."); } pos = 0; } |