Rustfmt + Bump

This commit is contained in:
Alexey
2026-04-17 19:08:57 +03:00
parent 093faed0c2
commit b447f60a72
6 changed files with 48 additions and 12 deletions

View File

@@ -111,7 +111,10 @@ fn probe_target(listen: SocketAddr) -> SocketAddr {
}
fn build_request(target: SocketAddr, path: &str, auth_header: &str) -> String {
let mut request = format!("GET {path} HTTP/1.1\r\nHost: {}\r\nConnection: close\r\n", target);
let mut request = format!(
"GET {path} HTTP/1.1\r\nHost: {}\r\nConnection: close\r\n",
target
);
if !auth_header.is_empty() {
request.push_str("Authorization: ");
request.push_str(auth_header);