Some HTTP upgrade related fixes