Skip to content

Commit db91048

Browse files
Jake NobleJake Noble
authored andcommitted
corrected check for resource starting with http
1 parent 3013ed2 commit db91048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tincan/remote_lrs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _send_request(self, request):
101101
params = {k: unicode(params[k]).encode('utf-8') for k in params.keys()}
102102
params = urllib.urlencode(params)
103103

104-
if "http" in request.resource:
104+
if request.resource.startswith('http'):
105105
url = request.resource
106106
else:
107107
url = self.endpoint

0 commit comments

Comments
 (0)