Commit 11c248e8 authored by octal's avatar octal

Added simple test for AccessControlAllowOrigin header

parent 2f7bd50e
......@@ -270,3 +270,11 @@ TEST(headers_test, content_type) {
ASSERT_EQ(mime, MIME(Text, Html));
ASSERT_EQ(mime.getParam("charset").getOrElse(""), "ISO-8859-4");
}
TEST(headers_test, access_control_allow_origin_test)
{
Header::AccessControlAllowOrigin allowOrigin;
allowOrigin.parse("http://foo.bar");
ASSERT_EQ(allowOrigin.uri(), "http://foo.bar");
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment