Skip to content

Commit 8e38b47

Browse files
committed
fix: fix url processing
1 parent c687e34 commit 8e38b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-tauri/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn read_file(path: &Path, check_lowercase: bool) -> Result<Vec<u8>, String> {
6262

6363
#[command]
6464
fn read_resource(url: String, state: State<'_, GamesPath>) -> Result<Vec<u8>, String> {
65-
let uri = url.replace("qsp://", "").replace("https://qsp", "");
65+
let uri = url.replace("qsp://", "").replace("https://qsp.", "");
6666
let path = decode(&uri).unwrap_or_default();
6767
let slash_index = path.chars().position(|c| c == '/').unwrap();
6868
let uuid_str = &path[0..slash_index];

0 commit comments

Comments
 (0)