Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9458 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

[PATCH] CgiRequest#host for literal IPv6 address URL

Reported by: yuya Assigned to: core
Priority: normal Milestone: 1.x
Component: ActionPack Version: edge
Severity: normal Keywords:
Cc:

Description

This patch adds accessing by literal IPv6 address URL support to CgiRequest#host. (ex. http://[2001:1234:5678:9abc:def0::dead:beef]:8080/user/yuya)

`host' is defined in urn:ietf:rfc:2732 section 3.

host          = hostname | IPv4address | IPv6reference
ipv6reference = "[" IPv6address "]"

where IPv6address is defined as in RFC2373 [ARCH].

So, CgiRequest#host returns ipv6reference when it accesses by literal IPv6 address URL, I think.

Attachments

literal_ipv6_address_url.patch (1.3 kB) - added by yuya on 08/31/07 15:20:49.

Change History

08/31/07 15:20:49 changed by yuya

  • attachment literal_ipv6_address_url.patch added.

08/31/07 19:03:45 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [7382]) request.host works with IPv6 addresses. Closes #9458.