In examples/image_list/lib/main.dart, the local HTTPS server's request handler calls request.response.close() without await (line 115). HttpResponse.close() returns a Future that completes when the response is fully sent. Without await, the handler may return before response bytes are flushed, potentially causing incomplete image responses under load.
Fix: Add await to request.response.close(). One-line change.
In
examples/image_list/lib/main.dart, the local HTTPS server's request handler callsrequest.response.close()withoutawait(line 115).HttpResponse.close()returns aFuturethat completes when the response is fully sent. Withoutawait, the handler may return before response bytes are flushed, potentially causing incomplete image responses under load.Fix: Add
awaittorequest.response.close(). One-line change.