mushenglon-sudo commented on issue #12752:
URL: https://github.com/apache/apisix/issues/12752#issuecomment-3540384786
I used the address of upstream in the _M.before_proxy stage
local http_obj = http.new()
local ok, err = http_obj:connect({
scheme = ctx.upstream_scheme,
host = ctx.picked_server.host,
port = ctx.picked_server.port,
})
Then use it again
local httpc = http.new()
httpc:set_timeout(conf.timeout)
local res, err = httpc:request_uri(conf.uri, params)
httpc:close()
The same client requests twice
Two returns are different
The first time was right
The second time is
400 Bad Request, client: 192.168.65.1, server: _, request: "POST
/protected-word-manager/api/v1/Content HTTP/1.1", host: "127.0.0.1:9080"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]