mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 06:28:32 +08:00
chore: add content type
This commit is contained in:
1 parent
a88d149dad
commit
65924e9a5d
1 file changed
+5
-1
@@ -74,7 +74,11 @@ pub fn embed_server(app_handle: AppHandle) {
|
||||
.latest()
|
||||
.verge_mixed_port
|
||||
.unwrap_or(Config::clash().data().get_mixed_port());
|
||||
content.replace("%mixed-port%", &format!("{}", port))
|
||||
let content = content.replace("%mixed-port%", &format!("{}", port));
|
||||
warp::http::Response::builder()
|
||||
.header("Content-Type", "application/x-ns-proxy-autoconfig")
|
||||
.body(content)
|
||||
.unwrap_or_default()
|
||||
});
|
||||
let scheme = warp::path!("commands" / "scheme")
|
||||
.and(warp::query::<QueryParam>())
|
||||
|
||||
Reference in new issue
Block a user