Fixed issue introduced with using Uri() class.

Restored to previous code and applied only fix for HTTPS protocol.
Updated package 1.4.2