Fix bug causing mutation of http_prefix.