Do not send cookie header twice
Use case-insensitive string maps
Fix algorithm
Test that case-insensitive map works