Rodolfo Pilas wrote:
> Cherokee do not understand "example.com." and "example.com" as the same
> domain name. Then, you need to include at Server definition the domain
> with and without final dot.
Ok, you are right. Here is the patch:
Index: cherokee/connection.c
===================================================================
--- cherokee/connection.c (revision 45)
+++ cherokee/connection.c (working copy)
@@ -984,6 +984,11 @@
if ((cnt->host->len >= 1) && (*cnt->host->buf == '.')) {
return ret_error;
}
+
+ /* RFC-1034: Dot ending host names
+ */
+ if (cherokee_buffer_end_char(cnt->host) == '.')
+ cherokee_buffer_drop_endding (cnt->host, 1);
return ret_ok;
}
Thanks for the feedback :-)
--
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee