aboutsummaryrefslogtreecommitdiff
path: root/test/cookies.c
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-11-11 18:18:23 +0000
committercorvid <corvid@lavabit.com>2011-11-11 18:18:23 +0000
commit93018bb0f735888fd66de3ce5a46de3daf918a43 (patch)
tree3468f474868efee54ea0a9a5f801576ba8f6a0c0 /test/cookies.c
parent546bb6fcafd963993d8588d48cad03931d6f6e27 (diff)
fix IPv6 addr recognition
I was under the impression that the brackets were part of the host syntax, but a_Url_hostname() shows that they are part of the _authority_ and are stripped out when making the hostname.
Diffstat (limited to 'test/cookies.c')
-rw-r--r--test/cookies.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cookies.c b/test/cookies.c
index af59cb48..1468c248 100644
--- a/test/cookies.c
+++ b/test/cookies.c
@@ -918,13 +918,13 @@ int main()
/* SOME IP ADDRS */
- a_Cookies_set("name=val", "[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]",
+ a_Cookies_set("name=val", "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210",
"/", NULL);
expect(__LINE__, "Cookie: name=val\r\n", "http",
- "[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]", "/");
+ "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210", "/");
- a_Cookies_set("name=val", "[::FFFF:129.144.52.38]", "/", NULL);
- expect(__LINE__, "Cookie: name=val\r\n", "http", "[::FFFF:129.144.52.38]",
+ a_Cookies_set("name=val", "::FFFF:129.144.52.38", "/", NULL);
+ expect(__LINE__, "Cookie: name=val\r\n", "http", "::FFFF:129.144.52.38",
"/");
a_Cookies_set("name=val", "127.0.0.1", "/", NULL);