Simple logging
This commit is contained in:
@@ -28,11 +28,13 @@ pub fn run() {
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.1;
|
.1;
|
||||||
let http = buf_str.split_once("\n").unwrap().1;
|
let http = buf_str.split_once("\n").unwrap().1;
|
||||||
|
println!("Sending request to {addr:?} with http: {http:?}");
|
||||||
stream
|
stream
|
||||||
.write_all(send_request(addr, http).as_bytes())
|
.write_all(send_request(addr, http).as_bytes())
|
||||||
.unwrap();
|
.unwrap();
|
||||||
stream.flush().unwrap();
|
stream.flush().unwrap();
|
||||||
} else {
|
} else {
|
||||||
|
println!("Sending default request");
|
||||||
stream
|
stream
|
||||||
.write_all(send_request("https://wikipedia.org", "GET / HTTP/1.1").as_bytes())
|
.write_all(send_request("https://wikipedia.org", "GET / HTTP/1.1").as_bytes())
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user