You should set default value for `port` to `None`.

This way it won't explode it will use `443`, by default when `secure` is `True`.