You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sy...@apache.org on 2022/11/21 07:07:13 UTC

[apisix] branch master updated: docs: fix expose-api doc (#8367)

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

sylviasu 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 da90b615c docs: fix expose-api doc (#8367)
da90b615c is described below

commit da90b615c7fb4b45a935e8957de66ddd967b71fc
Author: Fei Han <97...@users.noreply.github.com>
AuthorDate: Mon Nov 21 15:07:08 2022 +0800

    docs: fix expose-api doc (#8367)
    
    * Update expose-api.md
    
    * Update expose-api.md
---
 docs/en/latest/tutorials/expose-api.md | 2 +-
 docs/zh/latest/tutorials/expose-api.md | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/en/latest/tutorials/expose-api.md b/docs/en/latest/tutorials/expose-api.md
index 18f016ff2..c81f9f200 100644
--- a/docs/en/latest/tutorials/expose-api.md
+++ b/docs/en/latest/tutorials/expose-api.md
@@ -111,7 +111,7 @@ curl "http://127.0.0.1:9180/apisix/admin/routes/1" \
 After creating the Route, you can test the Service with the following command:
 
 ```
-curl -i -X GET "http://127.0.0.1:9080/get?foo1=bar1&foo2=bar2" -H "Host: httpbin.org"
+curl -i -X GET "http://127.0.0.1:9080/get?foo1=bar1&foo2=bar2" -H "Host: example.com"
 ```
 
 APISIX will forward the request to `http://httpbin.org:80/anything/foo?arg=10`.
diff --git a/docs/zh/latest/tutorials/expose-api.md b/docs/zh/latest/tutorials/expose-api.md
index 0f03f5374..c2886273a 100644
--- a/docs/zh/latest/tutorials/expose-api.md
+++ b/docs/zh/latest/tutorials/expose-api.md
@@ -114,7 +114,7 @@ curl "http://127.0.0.1:9180/apisix/admin/routes/1" \
 在创建完成路由后,你可以通过以下命令测试路由是否正常:
 
 ```
-curl -i -X GET "http://127.0.0.1:9080/get?foo1=bar1&foo2=bar2" -H "Host: httpbin.org"
+curl -i -X GET "http://127.0.0.1:9080/get?foo1=bar1&foo2=bar2" -H "Host: example.com"
 ```
 
 该请求将被 APISIX 转发到 `http://httpbin.org:80/anything/foo?arg=10`。