fix order in http_connection_discard()
fix parsing of headers with empty values