make https honor ExpectedSize as well