| Index: utils/pub/http.dart
|
| diff --git a/utils/pub/http.dart b/utils/pub/http.dart
|
| index 0a2bf2eeddc009ba00c43754822e5c057e717b73..e148418e686501496dd26f2617b344ce090370cc 100644
|
| --- a/utils/pub/http.dart
|
| +++ b/utils/pub/http.dart
|
| @@ -50,9 +50,7 @@ class PubHttpClient extends http.BaseClient {
|
| var status = streamedResponse.statusCode;
|
| // 401 responses should be handled by the OAuth2 client. It's very
|
| // unlikely that they'll be returned by non-OAuth2 requests.
|
| - if (status < 400 || status == 401) {
|
| - return new Future.immediate(streamedResponse);
|
| - }
|
| + if (status < 400 || status == 401) return streamedResponse;
|
|
|
| return http.Response.fromStream(streamedResponse).then((response) {
|
| throw new PubHttpException(response);
|
|
|