Преглед изворни кода

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 година
родитељ
комит
ef210ff468
1 измењених фајлова са 1 додато и 1 уклоњено
  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();