We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a47bf0 commit fafceecCopy full SHA for fafceec
.changes/fix-dev-server-proxy-url.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch:bug
3
4
+
5
+Fixes mobile dev server proxy request URL with trailing slashes.
crates/tauri/src/protocol/tauri.rs
@@ -102,7 +102,11 @@ fn get_response<R: Runtime>(
102
let decoded_path = percent_encoding::percent_decode(path.as_bytes())
103
.decode_utf8_lossy()
104
.to_string();
105
- let url = format!("{url}{decoded_path}");
+ let url = format!(
106
+ "{}/{}",
107
+ url.trim_end_matches('/'),
108
+ decoded_path.trim_start_matches('/')
109
+ );
110
111
let mut proxy_builder = reqwest::ClientBuilder::new()
112
.build()
0 commit comments