Yes, that's also working. But IMO it's more clear to match a regexp against a "real" header instead of using a method where it's not 100% obvious where the value is coming from.