Optimizes normalize_headers
for performance
#1029
Merged
normalize_headers
for performance
#1029