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

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

Issue 128203002: Fix static warnings introduced by library cleanup. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index 1808277f633282423ef92aecb27748490edc3cd8..a99ca015a99f30f1d503617aca2e3748c120eaca 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -170,8 +170,11 @@ class _HttpClientResponse
int get statusCode => _incoming.statusCode;
String get reasonPhrase => _incoming.reasonPhrase;
- X509Certificate get certificate =>
- _httpRequest._httpClientConnection._socket.peerCertificate;
+ X509Certificate get certificate {
+ // The peerCertificate isn't on a plain socket, so cast to dynamic.
+ var socket = _httpRequest._httpClientConnection._socket;
+ return socket.peerCertificate;
+ }
List<Cookie> get cookies {
if (_cookies != null) return _cookies;
« no previous file with comments | « no previous file | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698