Chromium Code Reviews| Index: pkg/http/lib/src/base_request.dart |
| diff --git a/pkg/http/lib/src/base_request.dart b/pkg/http/lib/src/base_request.dart |
| index e75ef156f00f2a2b7d35e7b47d9372c8f66c4ce7..6663b25544d34c337fc0ad41829e545ad81e406f 100644 |
| --- a/pkg/http/lib/src/base_request.dart |
| +++ b/pkg/http/lib/src/base_request.dart |
| @@ -32,7 +32,7 @@ abstract class BaseRequest { |
| int _contentLength = -1; |
| set contentLength(int value) { |
| - _checkFinalized(); |
| + _baseCheckFinalized(); |
| _contentLength = value; |
| } |
| @@ -42,7 +42,7 @@ abstract class BaseRequest { |
| bool _persistentConnection = true; |
| set persistentConnection(bool value) { |
| - _checkFinalized(); |
| + _baseCheckFinalized(); |
| _persistentConnection = value; |
| } |
| @@ -52,7 +52,7 @@ abstract class BaseRequest { |
| bool _followRedirects = true; |
| set followRedirects(bool value) { |
| - _checkFinalized(); |
| + _baseCheckFinalized(); |
| _followRedirects = value; |
| } |
| @@ -63,7 +63,7 @@ abstract class BaseRequest { |
| int _maxRedirects = 5; |
| set maxRedirects(int value) { |
| - _checkFinalized(); |
| + _baseCheckFinalized(); |
| _maxRedirects = value; |
| } |
| @@ -123,7 +123,7 @@ abstract class BaseRequest { |
| } |
| /// Throws an error if this request has been finalized. |
| - void _checkFinalized() { |
| + void _baseCheckFinalized() { |
|
nweiz
2014/01/11 00:02:44
Add a TODO to rename this to checkFinalized when i
|
| if (!finalized) return; |
| throw new StateError("Can't modify a finalized Request."); |
| } |