Skip to content

Commit d588d12

Browse files
committed
Fix server_port can be None #77
1 parent 21259a1 commit d588d12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/onelogin/saml2/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def get_self_url_host(request_data):
261261
else:
262262
protocol = 'http'
263263

264-
if 'server_port' in request_data:
264+
if 'server_port' in request_data and request_data['server_port'] is not None:
265265
port_number = str(request_data['server_port'])
266266
port = ':' + port_number
267267

0 commit comments

Comments
 (0)