Another HTTP exception workaround

git-svn-id: https://zxing.googlecode.com/svn/trunk@2593 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-03-24 12:06:52 +00:00
parent 4dc5f1abac
commit 843a181d73

View file

@ -216,10 +216,10 @@ public final class HttpHelper {
// this is maybe this Android bug: http://code.google.com/p/android/issues/detail?id=15554
Log.w(TAG, "Bad URI? " + uri);
throw new IOException(npe.toString());
} catch (NumberFormatException nfe) {
// Again seen this in the wild for bad header fields in the server response!
} catch (IllegalArgumentException iae) {
// Again seen this in the wild for bad header fields in the server response! or bad reads
Log.w(TAG, "Bad server status? " + uri);
throw new IOException(nfe.toString());
throw new IOException(iae.toString());
}
}