We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e733e9 + 296e008 commit 6e39731Copy full SHA for 6e39731
1 file changed
dxf/__init__.py
@@ -302,7 +302,8 @@ def authenticate(self,
302
scope = ''
303
url_parts = list(urlparse.urlparse(info['realm']))
304
query = urlparse.parse_qsl(url_parts[4])
305
- query.append(('service', info['service']))
+ if 'service' in info:
306
+ query.append(('service', info['service']))
307
query.extend(('scope', s) for s in scope.split())
308
url_parts[4] = urlencode(query, True)
309
url_parts[0] = 'https'
0 commit comments