Browse Source

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 years ago
parent
commit
ef210ff468
1 changed files with 1 additions and 1 deletions
  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();