Fix issue with HTTP upgrade
Fix HTTP upgrade problem