Skip to content

Commit

Permalink
chore: standardize request parsing to use a single path handler (#7106)
Browse files Browse the repository at this point in the history
#### What type of PR is this?
/kind improvement
/area core
/milestone 2.20.x

#### What this PR does / why we need it:
统一使用同一个 RequestPath 来解析请求信息

#### Does this PR introduce a user-facing change?

```release-note
None
```
  • Loading branch information
guqing authored Dec 3, 2024
1 parent 568c7d2 commit 7bd9408
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public RequestInfo newRequestInfo(ServerHttpRequest request) {
RequestInfo requestInfo =
new RequestInfo(false, path.value(), request.getMethod().name().toLowerCase());

String[] currentParts = splitPath(request.getPath().value());
String[] currentParts = splitPath(path.value());

if (currentParts.length < 3) {
// return a non-resource request
Expand Down

0 comments on commit 7bd9408

Please sign in to comment.