diff options
author | Jiaxin Wu <Jiaxin.wu@intel.com> | 2018-07-20 10:30:13 +0800 |
---|---|---|
committer | Jiaxin Wu <Jiaxin.wu@intel.com> | 2018-08-03 08:34:03 +0800 |
commit | 7191827f90b4a09cfef56e1cf23a768a9cb90e07 (patch) | |
tree | e8263d969046779f693e925e0843fd78826e198f /BaseTools/Scripts | |
parent | df4c129833ab5a94a4920620938e32979cf2f241 (diff) | |
download | edk2-7191827f90b4a09cfef56e1cf23a768a9cb90e07.tar.gz edk2-7191827f90b4a09cfef56e1cf23a768a9cb90e07.tar.bz2 edk2-7191827f90b4a09cfef56e1cf23a768a9cb90e07.zip |
NetworkPkg/HttpDxe: Strip square brackets in IPv6 expressed HostName.
*v2: Optimize the patch by calculating AsciiStrSize() only once.
In URI, the colon (:) is used to terminate the HostName path before
a port number. However, if HostName is expressed as IPv6 format, colon
characters in IPv6 addresses will conflict with the colon before port
number. To alleviate this conflict in URI, the IPv6 expressed HostName
are enclosed in square brackets ([]). To record the real IPv6 HostName,
square brackets should be stripped.
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'BaseTools/Scripts')
0 files changed, 0 insertions, 0 deletions