adjustments for SSL and SPDY connections