shouldn't we just add a `Headers.replace`  function and use that here?