Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1420)

Unified Diff: samples/chat/chat_server_lib.dart

Issue 10008083: Add HTTP/1.0 support and simplify persistent connections handling (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: samples/chat/chat_server_lib.dart
diff --git a/samples/chat/chat_server_lib.dart b/samples/chat/chat_server_lib.dart
index b9ac74c6f34ffed47ef2daba406b428a6ad4be37..fe28ef4ebfa51ccd59bcb90715fdc97264eae86b 100644
--- a/samples/chat/chat_server_lib.dart
+++ b/samples/chat/chat_server_lib.dart
@@ -375,9 +375,9 @@ class IsolatedServer extends Isolate {
// Get the length of the file for setting the Content-Length header.
RandomAccessFile openedFile = file.openSync();
response.contentLength = openedFile.lengthSync();
- openedFile.close();
+ openedFile.closeSync();
// Pipe the file content into the response.
- file.openInputStreamSync().pipe(response.outputStream);
+ file.openInputStream().pipe(response.outputStream);
} else {
print("File not found: $fileName");
_notFoundHandler(request, response);

Powered by Google App Engine
This is Rietveld 408576698