http: keep authority and host at nil if there is none