Index: samples/chat/dart_client/chat.dart |
diff --git a/samples/chat/dart_client/chat.dart b/samples/chat/dart_client/chat.dart |
index 3b1d2391ad2f9537dcd1c9101c767ea2ec38e1cc..4913fb6859ef593411a333ef9f843b576be6905e 100644 |
--- a/samples/chat/dart_client/chat.dart |
+++ b/samples/chat/dart_client/chat.dart |
@@ -168,7 +168,7 @@ class Chat { |
onError(); |
} |
}); |
- request.open("POST", url, async: true); |
+ request.open("POST", url, true); |
request.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"); |
request.send(jsonlib.stringify(json)); |
return request; |