You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/07/19 06:33:11 UTC

[apisix] branch master updated: test: update request to adapt server's change (#4624)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0984017  test: update request to adapt server's change (#4624)
0984017 is described below

commit 098401747135e2395bc12d26f29fe6fa0f3a2a2d
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Mon Jul 19 14:33:00 2021 +0800

    test: update request to adapt server's change (#4624)
---
 t/misc/patch.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/misc/patch.t b/t/misc/patch.t
index 620b1b0..d912056 100644
--- a/t/misc/patch.t
+++ b/t/misc/patch.t
@@ -139,7 +139,7 @@ apisix:
         content_by_lua_block {
             local http = require("resty.http")
             local httpc = http.new()
-            local res, err = httpc:request_uri("http://apisix")
+            local res, err = httpc:request_uri("http://apisix", {headers={Host="apisix.apache.org"}})
             if not res then
                 ngx.log(ngx.ERR, err)
                 return
@@ -171,7 +171,7 @@ apisix:
         end
         local http = require("resty.http")
         local httpc = http.new()
-        local res, err = httpc:request_uri("http://apisix")
+        local res, err = httpc:request_uri("http://apisix", {headers={Host="apisix.apache.org"}})
         if not res then
             ngx.log(ngx.ERR, err)
             return ngx.exit(-1)