Ver Fonte

upg hyper to elim alloc on Server header (#2670)

Max Gortman há 8 anos atrás
pai
commit
6ab5241352
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      frameworks/Rust/hyper/Cargo.toml
  2. 1 1
      frameworks/Rust/hyper/src/main.rs

+ 1 - 1
frameworks/Rust/hyper/Cargo.toml

@@ -15,4 +15,4 @@ mime = "0.2"
 
 [dependencies.hyper]
 git = "https://github.com/hyperium/hyper/"
-rev = "43cf9aefe8f9147a0f08aa0f9d609d275549fd7c"
+rev = "030393d09987ef0fa1866d74b4bb1ab1e46905a3"

+ 1 - 1
frameworks/Rust/hyper/src/main.rs

@@ -50,7 +50,7 @@ impl Service for TechEmpower {
             }
             _ => Response::new().with_status(NotFound),
         };
-        future::ok(response.with_header(Server("Hyper".to_string())))
+        future::ok(response.with_header(Server::new("Hyper")))
     }
 }