mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-28 11:25:00 +00:00
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> |
||
|---|---|---|
| .. | ||
| .mvn | ||
| scripts | ||
| skillhub-app | ||
| skillhub-auth | ||
| skillhub-domain | ||
| skillhub-infra | ||
| skillhub-notification | ||
| skillhub-search | ||
| skillhub-storage | ||
| .dockerignore | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| mvnw | ||
| mvnw.cmd | ||
| pom.xml | ||