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

Unified Diff: pkg/shelf/lib/shelf_io.dart

Issue 281353004: pkg/shelf: Fixed logic for setting Server header in `shelf_io` (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/shelf/lib/shelf_io.dart
diff --git a/pkg/shelf/lib/shelf_io.dart b/pkg/shelf/lib/shelf_io.dart
index 1bd4f5164def2a8d6d6dd6b390bf8087d0141355..35efe4573334817f1dcc58b8d166d50095a13f9d 100644
--- a/pkg/shelf/lib/shelf_io.dart
+++ b/pkg/shelf/lib/shelf_io.dart
@@ -87,10 +87,6 @@ Future _writeResponse(Response response, HttpResponse httpResponse) {
httpResponse.headers.set(header, value);
});
- if (response.headers[HttpHeaders.SERVER] == null) {
- var value = httpResponse.headers.value(HttpHeaders.SERVER);
- httpResponse.headers.set(HttpHeaders.SERVER, '$value with Shelf');
- }
nweiz 2014/05/15 22:21:32 I still like the intent of this code, even if it d
return httpResponse.addStream(response.read())
.then((_) => httpResponse.close());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698