From c6a4b4cf06f5d94dd4590a823890e6937e6b2805 Mon Sep 17 00:00:00 2001 From: nooperpudd <365504029@qq.com> Date: Mon, 26 Dec 2016 14:28:22 +0800 Subject: [PATCH] fix https url fix https url --- giturlparse/platforms/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/giturlparse/platforms/base.py b/giturlparse/platforms/base.py index 28d601a..bd04da5 100644 --- a/giturlparse/platforms/base.py +++ b/giturlparse/platforms/base.py @@ -5,14 +5,14 @@ class BasePlatform(object): FORMATS = { 'ssh': r"%(_user)s@%(host)s:%(repo)s.git", 'http': r"http://%(host)s/%(repo)s.git", - 'https': r"http://%(host)s/%(repo)s.git", + 'https': r"https://%(host)s/%(repo)s.git", 'git': r"git://%(host)s/%(repo)s.git" } PATTERNS = { 'ssh': r"(?P<_user>.+)s@(?P.+)s:(?P.+)s.git", 'http': r"http://(?P.+)s/(?P.+)s.git", - 'https': r"http://(?P.+)s/(?P.+)s.git", + 'https': r"https://(?P.+)s/(?P.+)s.git", 'git': r"git://(?P.+)s/(?P.+)s.git" }