Usually in cases like this I prefer copying the headers before modifying it or at least documenting it in the docstring that `headers` gets mutated in a way that `Host` gets removed if it's present.