mirror of https://github.com/halo-dev/halo
chore: standardize request parsing to use a single path handler (#7106)
#### 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 ```pull/7108/head
parent
568c7d27e5
commit
7bd9408519
|
@ -94,7 +94,7 @@ public class RequestInfoFactory {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue