bosprimigenious commented on code in PR #1078:
URL: https://github.com/apache/dubbo-go-pixiu/pull/1078#discussion_r4527119879
##########
pkg/filter/http/httpproxy/routerfilter.go:
##########
@@ -135,6 +135,7 @@ func (f *Filter) Decode(hc *contexthttp.HttpContext)
filter.FilterStatus {
Host: endpoint.Address.GetAddress(),
Scheme: f.scheme,
Path: r.URL.Path,
+ RawPath: r.URL.RawPath,
Review Comment:
995d4a7 已在 `RawPath` 赋值上方补上注释,说明只有其解码结果仍等于 `Path` 时才采用
`RawPath`,否则回退到重新转义。当前 PR 只覆盖 `httpproxy` 这条转发路径;`Host` 和 `X-Forwarded-*`
的既有行为没有在这里改变。
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]