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

Unified Diff: sdk/lib/_internal/pub/lib/src/http.dart

Issue 23093023: Stop working around issue 6775. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « pkg/oauth2/lib/src/handle_access_token_response.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/http.dart
diff --git a/sdk/lib/_internal/pub/lib/src/http.dart b/sdk/lib/_internal/pub/lib/src/http.dart
index b23dfd0e5a20292a38fd704d3ce270021076882b..a54f02f26ae0897790e5f9c5b48788366c4709ad 100644
--- a/sdk/lib/_internal/pub/lib/src/http.dart
+++ b/sdk/lib/_internal/pub/lib/src/http.dart
@@ -204,8 +204,7 @@ Map parseJsonResponse(http.Response response) {
var value;
try {
value = json.parse(response.body);
- } catch (e) {
- // TODO(nweiz): narrow this catch clause once issue 6775 is fixed.
+ } on FormatException catch (e) {
invalidServerResponse(response);
}
if (value is! Map) invalidServerResponse(response);
« no previous file with comments | « pkg/oauth2/lib/src/handle_access_token_response.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698