Fix typo and use #get_header to handle mixed-case header keys