Merge pull request #1806 from joseluisdiaz/return-moto-api-backend

Return given host for 'moto-api'
This commit is contained in:
Steve Pulec 2018-09-22 16:20:22 -04:00 committed by GitHub
commit d3b5cea22a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,9 @@ class DomainDispatcherApplication(object):
self.service = service
def get_backend_for_host(self, host):
if host == 'moto_api':
return host
if self.service:
return self.service