Fix the generation of swagger base path for https

/to @ritch