Skip to content

Commit

Permalink
Merge branch 'pasqLisena-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
PWZER committed Mar 12, 2020
2 parents 7704a89 + 5c31473 commit 0233013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swagger_ui/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_config(self, host):
if StrictVersion(config.get('openapi', '2.0.0')) >= StrictVersion('3.0.0'):
for server in config['servers']:
server['url'] = re.sub('//[a-z0-9\-\.:]+/?', '//{}/'.format(host), server['url'])
else:
elif not 'host' in config:
config['host'] = host
return config

Expand Down

0 comments on commit 0233013

Please sign in to comment.