fix bug in parse_url in http_functs.cpp