Skip to content

Commit c6b7031

Browse files
author
ikethecoder
committed
Merge branch 'dev'
2 parents 26d5e00 + 7cbf5a0 commit c6b7031

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

microservices/gatewayApi/v1/routes/gateway.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ def validate_hosts (yaml, reserved_hosts, ns_attributes):
358358
errors = []
359359

360360
allowed_domains = []
361-
for domain in ns_attributes.get('perm-domains', ['api.gov.bc.ca'] ):
362-
allowed_domains.append(".%s" % domain)
361+
for domain in ns_attributes.get('perm-domains', ['.api.gov.bc.ca'] ):
362+
allowed_domains.append("%s" % domain)
363363

364364
## A host must not exist outside of namespace (reserved_hosts)
365365
if 'services' in yaml:

0 commit comments

Comments
 (0)