mirror of
https://github.com/alibaba/higress.git
synced 2026-03-20 02:07:27 +08:00
fix: ext-auth crash bugfix (#1705)
This commit is contained in:
@@ -49,13 +49,17 @@ func GetRequestPath() string {
|
||||
return path
|
||||
}
|
||||
|
||||
func GetRequestPathWithoutQuery() (string, error) {
|
||||
func GetRequestPathWithoutQuery() string {
|
||||
rawPath := GetRequestPath()
|
||||
if rawPath == "" {
|
||||
return ""
|
||||
}
|
||||
path, err := url.Parse(rawPath)
|
||||
if err != nil {
|
||||
return "", err
|
||||
proxywasm.LogErrorf("failed to parse request path '%s': %v", rawPath, err)
|
||||
return ""
|
||||
}
|
||||
return path.Path, nil
|
||||
return path.Path
|
||||
}
|
||||
|
||||
func GetRequestMethod() string {
|
||||
|
||||
Reference in New Issue
Block a user