~dlundquist/sniproxy/master

Viewing all changes in revision 411.

  • Committer: Dustin Lundquist
  • Date: 2018-02-26 19:28:02 UTC
  • Revision ID: git-v1:4af9a1b62b7987f2e9f3c561f589c10092d4e150
http: fix stripping port from IPv6 literals

When stripping port portion of HTTP Host header do not consider
non-digit characters. This fixes IPv6 literal addresses in the Host
header e.g. Host: [2001:db8::1]:8080.

Thanks starter48@GitHub for identifying this.

Closes #279

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: