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

Unified Diff: pkg/http/test/request_test.dart

Issue 16758008: Add 'Server' and 'User-Agent' default header fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: git cl dcommit Created 7 years, 6 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/http/test/http_test.dart ('k') | runtime/bin/common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/request_test.dart
diff --git a/pkg/http/test/request_test.dart b/pkg/http/test/request_test.dart
index 2e4c57013925bc06aff00e2dbee6c33b4ce37531..3ebe3e5f9b5ab1157f5ffc88aabe5fe79f77afd7 100644
--- a/pkg/http/test/request_test.dart
+++ b/pkg/http/test/request_test.dart
@@ -18,6 +18,7 @@ void main() {
var request = new http.Request('POST', serverUrl);
request.body = "hello";
+ request.headers['User-Agent'] = 'Dart';
expect(request.send().then((response) {
expect(response.statusCode, equals(200));
@@ -28,6 +29,7 @@ void main() {
'headers': {
'content-type': ['text/plain; charset=utf-8'],
'accept-encoding': ['gzip'],
+ 'user-agent': ['Dart'],
'content-length': ['5']
},
'body': 'hello'
« no previous file with comments | « pkg/http/test/http_test.dart ('k') | runtime/bin/common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698