fix problem with server https

                    
|Q            |A   |
|---          |--- |
|Bug fix?     |y   |
|New feature? |n   |
|BC breaks?   |n   |
|Deprecations?|n   |
|Tests pass?  |y   |
|Fixed tickets|#139|
|License      |MIT |
|Doc PR       |    |