Fixed base URL calculation algorithm when HTTPS protocol is used
Merge pull request #112 from mpryvkin/feature2

Fixed base URL calculation algorithm when HTTPS protocol is used