From 9dce86744c7e5044fa3d30810e02b4d2ab69df3f Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 8 May 2019 20:20:19 -0700 Subject: [PATCH] Clean up 'Server' header commentary. --- core/lib/src/rocket.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/lib/src/rocket.rs b/core/lib/src/rocket.rs index dd2ab651..8b2f46ce 100644 --- a/core/lib/src/rocket.rs +++ b/core/lib/src/rocket.rs @@ -216,12 +216,13 @@ impl Rocket { // Route the request and run the user's handlers. let mut response = self.route_and_process(request, data); - // Add the 'rocket' server header to the response and run fairings only if the header - // doesn't already exist. + // Add a default 'Server' header if it isn't already there. // TODO: If removing Hyper, write out `Date` header too. if !response.headers().contains("Server") { response.set_header(Header::new("Server", "Rocket")); } + + // Run the response fairings. self.fairings.handle_response(request, &mut response); // Strip the body if this is a `HEAD` request.