Skip to content

Commit

Permalink
Merge branch 'master' into fix/schema/1
Browse files Browse the repository at this point in the history
  • Loading branch information
pottekkat authored Oct 17, 2023
2 parents f3ecf05 + 33ee8d6 commit d49d21b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apisix/cli/ngx_tpl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ http {
}
apisix.http_init(args)
-- set apisix_lua_home into constans module
-- set apisix_lua_home into constants module
-- it may be used by plugins to determine the work path of apisix
local constants = require("apisix.constants")
constants.apisix_lua_home = "{*apisix_lua_home*}"
Expand Down
2 changes: 1 addition & 1 deletion apisix/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ end


function _M.http_exit_worker()
-- TODO: we can support stream plugin later - currently there is not `destory` method
-- TODO: we can support stream plugin later - currently there is not `destroy` method
-- in stream plugins
plugin.exit_worker()
require("apisix.plugins.ext-plugin.init").exit_worker()
Expand Down
1 change: 0 additions & 1 deletion conf/config-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ apisix:
# http is the default proxy mode. proxy_mode can be one of `http`, `stream`, or `http&stream`
proxy_mode: http
# stream_proxy: # TCP/UDP L4 proxy
# only: true # Enable L4 proxy only without L7 proxy.
# tcp:
# - addr: 9100 # Set the TCP proxy listening ports.
# tls: true
Expand Down
8 changes: 4 additions & 4 deletions docs/en/latest/plugins/response-rewrite.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f1
"set": {
"X-Server-id": 3,
"X-Server-status": "on",
"X-Server-balancer_addr": "$balancer_ip:$balancer_port"
"X-Server-balancer-addr": "$balancer_ip:$balancer_port"
}
},
"vars":[
Expand All @@ -107,7 +107,7 @@ Besides `set` operation, you can also `add` or `remove` response header like:
```json
"headers": {
"add": [
"X-Server-balancer_addr: $balancer_ip:$balancer_port"
"X-Server-balancer-addr: $balancer_ip:$balancer_port"
],
"remove": [
"X-TO-BE-REMOVED"
Expand Down Expand Up @@ -137,7 +137,7 @@ Transfer-Encoding: chunked
Connection: keep-alive
X-Server-id: 3
X-Server-status: on
X-Server-balancer_addr: 127.0.0.1:80
X-Server-balancer-addr: 127.0.0.1:80
{"code":"ok","message":"new json body"}
```
Expand Down Expand Up @@ -170,7 +170,7 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
"set": {
"X-Server-id":3,
"X-Server-status":"on",
"X-Server-balancer_addr":"$balancer_ip:$balancer_port"
"X-Server-balancer-addr":"$balancer_ip:$balancer_port"
}
},
"filters":[
Expand Down
8 changes: 4 additions & 4 deletions docs/zh/latest/plugins/response-rewrite.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 \
"set": {
"X-Server-id": 3,
"X-Server-status": "on",
"X-Server-balancer_addr": "$balancer_ip:$balancer_port"
"X-Server-balancer-addr": "$balancer_ip:$balancer_port"
}
},
"vars":[
Expand All @@ -108,7 +108,7 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 \
```json
"headers": {
"add": [
"X-Server-balancer_addr: $balancer_ip:$balancer_port"
"X-Server-balancer-addr: $balancer_ip:$balancer_port"
],
"remove": [
"X-TO-BE-REMOVED"
Expand Down Expand Up @@ -138,7 +138,7 @@ Transfer-Encoding: chunked
Connection: keep-alive
X-Server-id: 3
X-Server-status: on
X-Server-balancer_addr: 127.0.0.1:80
X-Server-balancer-addr: 127.0.0.1:80

{"code":"ok","message":"new json body"}
```
Expand Down Expand Up @@ -169,7 +169,7 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
"set": {
"X-Server-id":3,
"X-Server-status":"on",
"X-Server-balancer_addr":"$balancer_ip:$balancer_port"
"X-Server-balancer-addr":"$balancer_ip:$balancer_port"
}
},
"filters":[
Expand Down
2 changes: 1 addition & 1 deletion t/APISIX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ _EOC_
}
apisix.http_init(args)
-- set apisix_lua_home into constans module
-- set apisix_lua_home into constants module
-- it may be used by plugins to determine the work path of apisix
local constants = require("apisix.constants")
constants.apisix_lua_home = "$apisix_home"
Expand Down

0 comments on commit d49d21b

Please sign in to comment.