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

Unified Diff: lib/src/request.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/message.dart ('k') | lib/src/response.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/request.dart
diff --git a/lib/src/request.dart b/lib/src/request.dart
index b7882fe93b00eba7e87ee5a0aa338fcddd49c685..5c5f44cf3a3aa0f483cf3ea648ecbe139750d8fd 100644
--- a/lib/src/request.dart
+++ b/lib/src/request.dart
@@ -210,7 +210,7 @@ class Request extends Message {
headers = updateMap(this.headers, headers);
context = updateMap(this.context, context);
- if (body == null) body = this.read();
+ if (body == null) body = getBody(this);
var handlerPath = this.handlerPath;
if (path != null) handlerPath += path;
« no previous file with comments | « lib/src/message.dart ('k') | lib/src/response.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698