diff --git a/README.md b/README.md index 09e7321..43c45d9 100644 --- a/README.md +++ b/README.md @@ -84,14 +84,15 @@ async fn main() { println!(); println!("{}", root_cert_pem); println!(); - println!("Private key"); - println!("{}", root_cert_key); /* Save this cert to ca.crt and use it with curl like this: curl https://www.google.com -x http://127.0.0.1:3003 --cacert ca.crt */ + println!("Private key"); + println!("{}", root_cert_key); + while let Some(comm) = communications.next().await { let uri = comm.request.uri().clone(); // modify the request here if you want diff --git a/examples/proxy.rs b/examples/proxy.rs index 055789b..2f184a9 100644 --- a/examples/proxy.rs +++ b/examples/proxy.rs @@ -71,14 +71,15 @@ async fn main() { println!(); println!("{}", root_cert_pem); println!(); - println!("Private key"); - println!("{}", root_cert_key); /* Save this cert to ca.crt and use it with curl like this: curl https://www.google.com -x http://127.0.0.1:3003 --cacert ca.crt */ + println!("Private key"); + println!("{}", root_cert_key); + while let Some(comm) = communications.next().await { let uri = comm.request.uri().clone(); // modify the request here if you want