Fixing an issue where the return values of Response header functions were not consistently a string