From 54cbc98506d261be9ee2228b9ccf584e8b723234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Diaz?= Date: Mon, 3 Sep 2018 16:34:19 -0300 Subject: [PATCH] Return given host for 'moto-api' --- moto/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moto/server.py b/moto/server.py index aad47757a..ba2470478 100644 --- a/moto/server.py +++ b/moto/server.py @@ -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