diff --git a/gitlab/githelper.py b/gitlab/githelper.py index ac52ab5..1968ab2 100644 --- a/gitlab/githelper.py +++ b/gitlab/githelper.py @@ -6,7 +6,7 @@ def httpGet(url, params={}): real_url = url + urllib.parse.urlencode(params) req = urllib.request.Request(real_url) req.add_header('Private-Token', 'cRjSP2EUx1SaQYcis9W7') - data = urllib.request.urlopen(req).readall() + data = urllib.request.urlopen(req).read() return json.loads(data.decode('utf-8')) projects = httpGet('http://git.kingsome.cn/api/v4/projects?', diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index e774eaf..64f13c6 100644 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -16,6 +16,7 @@ yum install swig-2.0.10-5.el7.x86_64 yum install php-pdo-5.4.16-45.el7.x86_64 yum install php-mysql-5.4.16-45.el7.x86_64 yum install php-pecl-redis-2.2.8-1.el7.x86_64 + yum install php-mbstring-5.4.16-45.el7.x86_64 yum install v8-devel-3.14.5.10-25.el7.x86_64