| Index: samples/chat/chat_server_lib.dart
|
| diff --git a/samples/chat/chat_server_lib.dart b/samples/chat/chat_server_lib.dart
|
| index 6b2bd728105f0e22e4cd5a1f8746fafef31c44ae..b9ac74c6f34ffed47ef2daba406b428a6ad4be37 100644
|
| --- a/samples/chat/chat_server_lib.dart
|
| +++ b/samples/chat/chat_server_lib.dart
|
| @@ -331,7 +331,7 @@ class IsolatedServer extends Isolate {
|
|
|
| void _sendJSONResponse(HttpResponse response, Map responseData) {
|
| response.setHeader("Content-Type", "application/json; charset=UTF-8");
|
| - response.writeString(JSON.stringify(responseData));
|
| + response.outputStream.writeString(JSON.stringify(responseData));
|
| response.outputStream.close();
|
| }
|
|
|
|
|