summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-09-05 18:13:45 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2018-09-05 18:13:45 +0200
commit6f80380ed1de49dcc035d06408263d4961e7d18b (patch)
treeb85bb64fae3fbb816dd2c3ad2182ff50aceb7a12
parent042b706238810fa3b4fde92d298a709ebdb3a925 (diff)
downloadgitlab-6f80380ed1de49dcc035d06408263d4961e7d18b.tar.gz
Fix the https redirection test
-rw-r--r--gitlab/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 6afccf2..99ff5c5 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -411,7 +411,7 @@ class Gitlab(object):
if item.status_code not in (301, 302):
continue
# GET methods can be redirected without issue
- if result.request.method == 'GET':
+ if item.request.method == 'GET':
continue
# Did we end-up with an https:// URL?
location = item.headers.get('Location', None)