I'm not sure that the value should be lowercased, just the key. It's my understanding that Http headers should be compared in a case-insensitive way.