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

Unified Diff: sdk/lib/io/secure_socket.dart

Issue 11453006: Fix a number of HTTP issues (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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: sdk/lib/io/secure_socket.dart
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart
index 2a28e1356387974a21fb702d7ac973e160f75c1c..24f066bf093ad709710cce9fdea7b818f158ad0d 100644
--- a/sdk/lib/io/secure_socket.dart
+++ b/sdk/lib/io/secure_socket.dart
@@ -130,7 +130,7 @@ class _SecureSocket implements SecureSocket {
}
void set onData(void callback()) {
- if (_outputStream != null && callback != null) {
+ if (_inputStream != null && callback != null) {
Mads Ager (google) 2012/12/05 16:02:18 Heh! Thanks!
throw new StreamException(
"Cannot set data handler when input stream is used");
}

Powered by Google App Engine
This is Rietveld 408576698