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

Unified Diff: lib/src/response.dart

Issue 1327453002: Share a body across all versions of a message. (Closed) Base URL: git@github.com:dart-lang/shelf@master
Patch Set: Code review changes Created 5 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 | « lib/src/request.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/response.dart
diff --git a/lib/src/response.dart b/lib/src/response.dart
index 55863cba73979dc80c2a8b6aaf984cc3ff764e31..79f8994e444a89ba9f08e5cca26be17328027791 100644
--- a/lib/src/response.dart
+++ b/lib/src/response.dart
@@ -238,7 +238,7 @@ class Response extends Message {
headers = updateMap(this.headers, headers);
context = updateMap(this.context, context);
- if (body == null) body = this.read();
+ if (body == null) body = getBody(this);
return new Response(this.statusCode, body: body, headers: headers,
context: context);
« no previous file with comments | « lib/src/request.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698