skillhub/server/skillhub-app
FenjuFu 9054fb6ee2 fix(compat): percent-encode ClawHub download redirect Location
Downloading a skill whose slug is non-ASCII (e.g. a Chinese name) through
the ClawHub CLI compatibility route failed: the 302 Location header was
built by string-concatenating the raw slug, and Tomcat encodes header
values as ISO-8859-1, so a character outside 0-255 makes it drop the
Location header entirely and the download breaks. The skillhub CLI path
was unaffected because it doesn't go through this redirect.

Build the Location with UriComponentsBuilder.pathSegment(...).encode(), so
each segment is percent-encoded while the '/' separators stay literal.
"需求" becomes %E9%9C%80%E6%B1%82 and the header is ISO-8859-1-writable.

Fixes #658

Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
(cherry picked from commit 34dc4fa29c)
2026-08-03 17:58:06 +08:00
..
src fix(compat): percent-encode ClawHub download redirect Location 2026-08-03 17:58:06 +08:00
pom.xml fix: migrate scanner stream to redisson and refine audit status labels` (#153) 2026-03-24 14:56:16 +08:00