Utility for custom header determination