refactor HTTP headers