dart-sdk/tests
Zichang Guo d39cdf03f8 Reland [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: Ieb9f4061b27ed3bbc6d82e6a408c77d11abb037b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135357
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2020-02-14 22:23:17 +00:00
..
angular
co19 [co19] Handle builders using co19 with test selectors 2019-12-17 17:24:09 +00:00
co19_2 Remove dart:mirrors library from dart2js and ddc SDKs 2020-02-07 17:34:54 +00:00
compiler [dartdevc] Map bottom type to Null in legacy libraries 2020-02-14 16:16:07 +00:00
corelib Cleaning up corelib test migrations. 2020-02-03 19:06:17 +00:00
corelib_2 Update all Slow tests to be Slow, Pass. 2020-02-01 00:17:42 +00:00
dart
ffi [vm/ffi] Change asFunction and lookFunction to extension methods 2020-02-14 15:46:37 +00:00
ffi_2 [vm/ffi] Change asFunction and lookFunction to extension methods 2020-02-14 15:46:37 +00:00
kernel Remove the old "preview Dart 2" flags from the test runner. 2019-09-05 16:59:43 +00:00
language Move DEAD_NULL_COALESCE reporting to ErrorVerifier. 2020-02-13 19:42:48 +00:00
language_2 Validate not only errors, but also warnings. 2020-02-13 21:31:59 +00:00
lib Remove another one of the unittest-like libraries. 2020-02-13 23:36:13 +00:00
lib_2 Revert "[vm/aot/tfa] Tree shake write-only fields" 2020-02-14 02:04:01 +00:00
modular [CFE] Use package config v2 2020-02-12 10:07:25 +00:00
search
standalone Reland [dart:io] Stop forcing lower case on HttpHeaders 2020-02-14 22:23:17 +00:00
standalone_2 Reland [dart:io] Stop forcing lower case on HttpHeaders 2020-02-14 22:23:17 +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
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.