From 0ab408fbb04bedc03680a0162218b5e27f9ef141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Pu=C5=82a?= Date: Wed, 21 Feb 2024 21:44:18 -0500 Subject: [PATCH] Clean up code and add plans for future releases. --- README.md | 4 +++- src/main.rs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ce3157a..17354d6 100644 --- a/README.md +++ b/README.md @@ -30,4 +30,6 @@ sudo dpkg -i "mirror-server-${VERSION}_amd64.deb" * [x] Add mirroring of JSON request. * [x] Add logging to server. * [x] ~~Add convenience path to access logging for a certain date / records.~~ -* [ ] Dockerize mirror-server for easier distribution. +* [ ] Create Docker image for mirror-server for easier distribution. +* [ ] Add publishing of DEB and Docker image to DroneCI. +* [ ] Add OpenAPI/Swagger UI diff --git a/src/main.rs b/src/main.rs index fde7472..95c8ff1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,12 +35,12 @@ struct EchoResponse { async fn echo_request( method: Method, original_uri: OriginalUri, - host: Host, + Host(host): Host, header_map: HeaderMap, body: Option>, ) -> Json { let method = method.to_string(); - let host = host.0; + let host = host; let path = original_uri.path().to_string(); let headers = header_map .iter()