dart-sdk/pkg
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
..
_fe_analyzer_shared [dart2js] Normalize DartTypes. 2020-02-14 01:59:12 +00:00
_js_interop_checks Add the first Kernel check for invalid JS interop 2020-01-28 22:39:10 +00:00
analysis_server Print completion metrics for similar contexts side-by-side 2020-02-14 20:19:37 +00:00
analysis_server_client Update generators to not produce type annotations for variable declarations 2020-01-25 16:31:15 +00:00
analysis_tool [analyzer] enable implicit-casts: false for several projects 2019-08-13 16:26:41 +00:00
analyzer Update idl with classes to store unlinked info with content hash, and linked bundles with signature. 2020-02-14 22:17:27 +00:00
analyzer_cli Support for --default-language-version flag in analyzer_cli. 2020-02-11 23:38:35 +00:00
analyzer_fe_comparison [CFE] Fix crash caused by name clash of loadLibrary tearoff method 2019-12-06 09:29:19 +00:00
analyzer_plugin Stop using 'factory something() => null;' in most cases. 2020-02-12 22:58:57 +00:00
async_helper Migrate lib_2/async to NNBD. 2020-01-09 22:04:37 +00:00
build_integration
compiler [dart2js] Add normalization to RTI. 2020-02-14 01:59:12 +00:00
dart2js_tools Use source-maps in test runner to expand JavaScript stack traces. 2020-01-24 20:00:13 +00:00
dart2native [vm] Refactor debug info handling code into a new package. 2020-01-23 10:14:17 +00:00
dart_internal Widen the SDK constraint on dart_internal to include 2.7.0. 2019-12-06 00:54:30 +00:00
dartdev Dartdev help output change, change the help output to be 'dart' instead of 'dartdev' in anticipation of having the Dart VM delegate to dartdev for supported commands 2020-02-14 17:29:02 +00:00
dartfix Convert dartfix to use underscores rather than hyphens for fix names 2020-01-26 22:56:36 +00:00
dev_compiler Reland [dart:io] Stop forcing lower case on HttpHeaders 2020-02-14 22:23:17 +00:00
diagnostic
expect Remove the matchers_lite.dart library. 2020-02-14 20:44:52 +00:00
front_end [CFE] Use package config v2 2020-02-12 10:07:25 +00:00
frontend_server Fix expression compiler tests on windows 2020-02-12 16:20:27 +00:00
js Fix pub.dev URLs throughout SDK repo 2019-11-20 11:30:48 +00:00
js_ast [dart2js] Defer ground type recipes until assembly 2019-10-11 20:12:06 +00:00
kernel Remove the matchers_lite.dart library. 2020-02-14 20:44:52 +00:00
meta typos 2020-01-02 23:09:17 +00:00
modular_test Remove matchers_lite.dart from loader_test expected packages. 2020-02-14 21:38:21 +00:00
native_stack_traces [pkg/native_stack_traces] Find instruction sections via dynamic symbols. 2020-02-07 11:34:59 +00:00
nnbd_migration [nnbd_migration] Add tests for important real-world exact nullable case 2020-02-14 21:48:22 +00:00
smith Revert "[vm] AOT blobs snapshots are obsolete. Remove dead code." 2020-02-14 06:40:31 +00:00
sourcemap_testing Move ID testing infrastructure into _fe_analyzer_shared. 2019-11-01 12:39:00 +00:00
status_file [vm] DBC is obsolete. Remove dead code. 2019-10-27 18:18:29 +00:00
telemetry [analyzer] send additional data to crash reporting 2019-11-27 00:16:50 +00:00
test_runner Revert "[vm] AOT blobs snapshots are obsolete. Remove dead code." 2020-02-14 06:40:31 +00:00
testing [CFE] Messages test doesn't allow status updates for spelling tests 2020-01-24 10:15:26 +00:00
vm [vm/nnbd] Support NullCheck AST node in TFA 2020-02-14 19:32:07 +00:00
vm_service Reland "[ VM / Service ] Added getClientName, setClientName and requireResumeApproval RPCs" 2020-02-05 18:14:39 +00:00
.gitignore [analyzer] update the pkg/.gitignore file to ignore the pkg/analysis_server/language_model/ dir 2019-07-26 21:28:51 +00:00
BUILD.gn
pkg.status [dartdev] add a dartdev 'create' command 2020-02-02 02:23:13 +00:00