Fixed a bug in the httpserver class.