mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 03:37:34 -08:00
Make sure to stop processing after all error conditions (errorResponse calls)
This commit is contained in:
parent
4fbcadfd37
commit
ab4ebad305
|
@ -185,6 +185,7 @@ public final class DecodeServlet extends HttpServlet {
|
|||
} catch (IOException | IllegalStateException e) {
|
||||
log.info("Error " + e + " while reading data URI: " + imageURIString);
|
||||
errorResponse(request, response, "badurl");
|
||||
return;
|
||||
}
|
||||
if (image == null) {
|
||||
log.info("Couldn't read data URI: " + imageURIString);
|
||||
|
@ -218,6 +219,7 @@ public final class DecodeServlet extends HttpServlet {
|
|||
if (destHostTracker.isBanned(imageURL.getHost())) {
|
||||
log.info("Temporarily not requesting from host: " + imageURIString);
|
||||
errorResponse(request, response, "badurl");
|
||||
return;
|
||||
}
|
||||
|
||||
HttpURLConnection connection;
|
||||
|
|
Loading…
Reference in a new issue