Chromium Code Reviews| 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") && |