ub3lal 1 개월 전
부모
커밋
abfec7ace3
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      lib/src/http_request.dart

+ 6 - 0
lib/src/http_request.dart

@@ -65,7 +65,13 @@ class HttpGetImage {
         response = await http
             .get(Uri.parse(url), headers: headers)
             .timeout(Duration(seconds: time));
+
         if (response.statusCode == 200) {
+          if (response.body.isNotEmpty) {
+            sendPort.send(null);
+            break;
+          }
+
           sendPort.send(response.bodyBytes);
           break;
         }