dart-sdk/tests
Zichang Guo b2b7337ad4 [dart:io] Stop forcing lower case on HttpHeaders
This is a breaking change. Request: https://github.com/dart-lang/sdk/issues/33501

HttpHeaders use lowercase by default for all headers, since it is supposed to be case insensitive. Some servers incorrectly treat case as significant, however, and expect headers with capitalization or in uppercase. The current implementation forces headers to be lower cases when adding values. Users cannot even manually modify the headers.

This change removes this restriction here so that users can modify the headers to whatever form they want. The new behavior is backwards compatible except if class was implemented. All headers inside http.dart are written as lower cases, adding values to HttpHeaders is still receiving lower cases input.

The other cl (https://dart-review.googlesource.com/c/http_multi_server/+/121411) migrates multi_headers.dart to be compatible with this change.

Bug: https://github.com/dart-lang/sdk/issues/33501
Change-Id: I6f7f2ef907b229773c283140c07f2de4cd500981
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119100
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2020-01-31 17:08:52 +00:00
..
angular
co19 [co19] Handle builders using co19 with test selectors 2019-12-17 17:24:09 +00:00
co19_2 [co19] Roll co19_2 and add co19 (nnbd) to DEPS. 2019-11-26 17:10:18 +00:00
compiler [dart2js] Fork backend subtyping into legacy and null-safe variants. 2020-01-30 17:02:38 +00:00
corelib Updating iterator expected values from null to -1. 2020-01-18 02:55:28 +00:00
corelib_2 Track files that do not need to be migrated in the NNBD progress script. 2019-12-20 21:25:35 +00:00
dart
ffi [vm/ffi] Split FFI tests in NNBD and legacy 2020-01-29 14:04:41 +00:00
ffi_2 [vm/ffi] Split FFI tests in NNBD and legacy 2020-01-29 14:04:41 +00:00
kernel Remove the old "preview Dart 2" flags from the test runner. 2019-09-05 16:59:43 +00:00
language [cfe,analyzer] Disallow type parameters on operator methods 2020-01-31 14:05:02 +00:00
language_2 [cfe,analyzer] Disallow type parameters on operator methods 2020-01-31 14:05:02 +00:00
lib [test] Move and migrate dart:profiler tests. 2020-01-24 20:15:48 +00:00
lib_2 [vm] Reland support for real unboxed floating point fields in AOT 2020-01-31 12:56:31 +00:00
modular [dartdevc] Cleanup all temporary nnbd modular tests 2019-12-18 00:43:44 +00:00
search
standalone [VM/tests] - First step to migrate dart:cli tests for NNBD. 2020-01-30 00:34:31 +00:00
standalone_2 [dart:io] Stop forcing lower case on HttpHeaders 2020-01-31 17:08:52 +00:00
legacy_status_dart2js.csv [infra] Remove non-essential test expectations with comments from general status files 2019-10-01 06:18:59 +00:00
light_unittest.dart
README.md Update tests/README to point to new doc. 2019-08-06 22:19:42 +00:00

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.