Branch: Tag:


2018-06-14 09:18:56 by Henrik Grubbström (Grubba) <>

Testsuite [WebDAV]: Fix handling of IPv4 ANY.

In Pike IPv4 ANY typically is represented as the zero ip-adress.
In Standards.URI however, setting the host field to zero is the
same as setting it to the empty string. To ensure the round-trip,
represent IPv4 ANY with the ip-adress "" in URLs.

Fixes testsuite background failures "Invalid address ''".

Fixes [WS-314].

47:    webdav_mount_point),    url_uri);    base_uri->port = prot->port; -  base_uri->host = prot->ip; +  base_uri->host = prot->ip || "";       if (username) {    base_uri->user = username;