fix(plugin): parameter convert failed (#274)
This commit is contained in:
@@ -250,7 +250,7 @@ func (p *PluginApplicationService) RegisterPluginMeta(ctx context.Context, req *
|
|||||||
if req.GetLocation() == common.AuthorizationServiceLocation_Query {
|
if req.GetLocation() == common.AuthorizationServiceLocation_Query {
|
||||||
loc = model.ParamInQuery
|
loc = model.ParamInQuery
|
||||||
} else if req.GetLocation() == common.AuthorizationServiceLocation_Header {
|
} else if req.GetLocation() == common.AuthorizationServiceLocation_Header {
|
||||||
loc = model.ParamInPath
|
loc = model.ParamInHeader
|
||||||
} else {
|
} else {
|
||||||
return nil, fmt.Errorf("invalid location '%s'", req.GetLocation())
|
return nil, fmt.Errorf("invalid location '%s'", req.GetLocation())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user