| Index: pkg/http/test/request_test.dart
|
| diff --git a/pkg/http/test/request_test.dart b/pkg/http/test/request_test.dart
|
| index 929cc636f0299d05e1720ce396447165da1951ae..31c7e91803527fc276c68da168e5f6eca8fc3cc2 100644
|
| --- a/pkg/http/test/request_test.dart
|
| +++ b/pkg/http/test/request_test.dart
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| @@ -271,6 +271,14 @@ void main() {
|
| expect(request.headers[HttpHeaders.CONTENT_TYPE], isNull);
|
| });
|
|
|
| + test('name is case insensitive', () {
|
| + var request = new http.Request('POST', dummyUrl);
|
| + request.headers[HttpHeaders.CONTENT_TYPE.toUpperCase()] =
|
| + 'application/json';
|
| + expect(request.headers[HttpHeaders.CONTENT_TYPE.toLowerCase()],
|
| + equals('application/json'));
|
| + });
|
| +
|
| test('is set to application/x-www-form-urlencoded with charset utf-8 if '
|
| 'bodyFields is set', () {
|
| var request = new http.Request('POST', dummyUrl);
|
|
|