Skip to content

Commit

Permalink
Fix server_port can be None #77
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk committed Jul 28, 2015
1 parent 21259a1 commit d588d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onelogin/saml2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def get_self_url_host(request_data):
else:
protocol = 'http'

if 'server_port' in request_data:
if 'server_port' in request_data and request_data['server_port'] is not None:
port_number = str(request_data['server_port'])
port = ':' + port_number

Expand Down

0 comments on commit d588d12

Please sign in to comment.