mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Handle IOException in multipart more cleanly
This commit is contained in:
parent
f56b2962b0
commit
7774683247
|
@ -264,6 +264,10 @@ public final class DecodeServlet extends HttpServlet {
|
||||||
log.info("File upload was too large or invalid");
|
log.info("File upload was too large or invalid");
|
||||||
errorResponse(request, response, "badimage");
|
errorResponse(request, response, "badimage");
|
||||||
return;
|
return;
|
||||||
|
} catch (IOException ioe) {
|
||||||
|
log.info(ioe.toString());
|
||||||
|
errorResponse(request, response, "badurl");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
Part fileUploadPart = null;
|
Part fileUploadPart = null;
|
||||||
for (Part part : parts) {
|
for (Part part : parts) {
|
||||||
|
|
Loading…
Reference in a new issue