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

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

Issue 12787002: Fix analyzer warnings in dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | no next file » | 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 f2204bf0cca80140e7125b2f91b7da00b4e616c9..5c3dbb16d4700893957bffe4dd2d3f91ec9c6061 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -428,8 +428,9 @@ abstract class _HttpOutboundMessage<T> implements IOSink {
bool asGZip = false;
bool isServerSide = this is _HttpResponse;
if (isServerSide && headers.chunkedTransferEncoding) {
+ _HttpResponse response = this as _HttpResponse;
Søren Gjesse 2013/03/12 13:22:10 You don't need "as _HttpResponse" here.
Anders Johnsen 2013/03/12 13:30:01 The editor told me I did - see new CL :)
List acceptEncodings =
- _httpRequest.headers[HttpHeaders.ACCEPT_ENCODING];
+ response._httpRequest.headers[HttpHeaders.ACCEPT_ENCODING];
List contentEncoding = headers[HttpHeaders.CONTENT_ENCODING];
if (acceptEncodings != null &&
acceptEncodings.any((encoding) => encoding.toLowerCase() == "gzip") &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698