SetHeader action refactoring to use parameters