<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Greetings,</div><div class=""><br class=""></div><div class="">I have a test case, originally for Erlang v20, where I do</div><div class="">httpc:request(get, {"<a href="http://[::1]:8888/apath" class="">http://[::1]:8888/apath</a>", []}, [], [{ipv6_host_with_brackets, true}]).</div><div class="">(it is to verify that Cowboy has started correctly by looking at the contents of the returned Body).</div><div class=""><br class=""></div><div class="">After upgrading to v21 this test case fails. DNS can not find [::0], there is no attempt to request/4 to localhost. I am on Ubuntu 18.10 if that can<br class="">be a cause of problems.</div><div class="">Remove the option {ipv6_host_with_brackets, true} and DNS is no longer involved and the request is done.<br class="">But then Cowboy complains: The host header is invalid. (RFC7230 5.4) and in the reply there is no Body.</div><div class="">The missing Body was what prompted me to add the option in the first place (v20).<br class=""><br class="">Is there a new, v21, option that I have missed that would allow this(*) to work?<br class=""><br class=""></div><div class="">If not, and if the v20 behaviour is not possible anymore, perhaps a new option:<br class="">{ipv6_host_with_brackets_in_http_header, true} can be introduced?</div><div class="">It would only add the brackets to IPv6 addresses in HTTP headers, while allowing httpc to remove them for other (DNS) usage.<br class=""><br class=""><br class="">Best Wishes,<br class="">bengt<br class="">(*) Erlang v21, https:get/4, Cowboy, [::0]</div></body></html>