Fixed a bug in httpd.c