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' |