|
|
@@ -67,10 +67,12 @@ class HttpGetImage {
|
|
|
.timeout(Duration(seconds: time));
|
|
|
|
|
|
if (response.statusCode == 200) {
|
|
|
- if (response.body.isNotEmpty) {
|
|
|
- sendPort.send(null);
|
|
|
- break;
|
|
|
- }
|
|
|
+ try {
|
|
|
+ if (response.body.isNotEmpty) {
|
|
|
+ sendPort.send(null);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ } catch (e) {}
|
|
|
|
|
|
sendPort.send(response.bodyBytes);
|
|
|
break;
|