Skip to content

Commit

Permalink
ZK-5679: RichletMapping with "/" on Class does not work on StatelessR…
Browse files Browse the repository at this point in the history
…ichlet class
  • Loading branch information
DevChu committed Apr 15, 2024
1 parent 44af50a commit 2202671
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions zkdoc/release-note
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ZK 10.0.1
* Features

* Bugs
ZK-5679: RichletMapping with "/" on Class does not work on StatelessRichlet class

* Upgrade Notes

Expand Down
3 changes: 3 additions & 0 deletions zweb/src/main/java/org/zkoss/web/servlet/http/Https.java
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ public static String normalizePath(String path) {
if (path == null) {
return null;
}
if ("/".equals(path)) {
return path;
}

List<String> parts = new ArrayList<>();
String[] segments = path.split("/");
Expand Down

0 comments on commit 2202671

Please sign in to comment.