This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
[Http] Fix handling of ipv6 address in host header
The current implementation of _HttpHeaders._addHost does not handle ipv6 address correctly. This patch fixes the handling and add test case for that. References: - flutter/flutter#83609 (comment) TEST=http_headers_test.dart has been updated with new cases. Bug: flutter/flutter#83609 (comment) Change-Id: Idc4e9bbe66d66f0d846c7a32a40854201c3b0153 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/205280 Reviewed-by: Siva Annamalai <firstname.lastname@example.org> Commit-Queue: Siva Annamalai <email@example.com>
- Loading branch information
Showing 2 changed files with 41 additions and 2 deletions.