Pārlūkot izejas kodu

Fix wrong size in hyper

Apparently, it will include the required \n itself, so no need to do it
here. This fixes a warning about the content-size being incorrect.
Steve Klabnik 9 gadi atpakaļ
vecāks
revīzija
ef210ff468
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      frameworks/Rust/hyper/src/main.rs

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

@@ -5,7 +5,7 @@ use hyper::uri::RequestUri;
 use hyper::header::ContentType;
 use hyper::header;
 
-const HELLO_WORLD: &'static [u8; 14] = b"Hello, World!\n";
+const HELLO_WORLD: &'static [u8; 13] = b"Hello, World!";
 
 fn main() {
     Server::http("0.0.0.0:8080").unwrap().handle(handler).unwrap();