merge duplicated headers when SPDY is enabled, fixes #572

I've been running this code for few days and tested it on several devices, no issues spotted. Please review