This is an automated email from the ASF dual-hosted git repository.

membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 4ad4cdb  change: delete duplicate code. (#769)
4ad4cdb is described below

commit 4ad4cdb6842fc993a7b69c10db547c38b045595a
Author: Geikiy <gei...@qq.com>
AuthorDate: Thu Oct 31 21:45:27 2019 +0800

    change: delete duplicate code. (#769)
---
 lua/apisix/admin/routes.lua | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lua/apisix/admin/routes.lua b/lua/apisix/admin/routes.lua
index 7bf71c9..ff88b10 100644
--- a/lua/apisix/admin/routes.lua
+++ b/lua/apisix/admin/routes.lua
@@ -59,10 +59,6 @@ local function check_conf(id, conf, need_id)
                                  .. "allowed"}
     end
 
-    if conf.host and conf.hosts then
-        return nil, {error_msg = "only one of host or hosts is allowed"}
-    end
-
     local upstream_id = conf.upstream_id
     if upstream_id then
         local key = "/upstreams/" .. upstream_id

Reply via email to