Fix to cookie parsing algorithm in RequestHeaders.