Corrected mistake and added https support