diff options
author | Teddy Wing | 2018-11-13 22:08:41 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-13 22:09:03 +0100 |
commit | a1184f48a0a4930f3e378860ba212051516b8717 (patch) | |
tree | c2a97379c471fe2ab8eeee60e99a2052bcd37087 | |
parent | fd154a053eb2b6240e2b0889acd922b5ac43212e (diff) | |
download | dome-key-web-a1184f48a0a4930f3e378860ba212051516b8717.tar.bz2 |
license: Add "Content-Type" to 404 response
The `set_404()` function doesn't do this, as it makes no assumptions
about response content type.
-rw-r--r-- | license-generator/src/bin/license.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/license-generator/src/bin/license.rs b/license-generator/src/bin/license.rs index 5010fff..8c77670 100644 --- a/license-generator/src/bin/license.rs +++ b/license-generator/src/bin/license.rs @@ -61,7 +61,7 @@ where W: 'a + Write { let page_404 = include_str!("../../../404.html"); response::set_404(self.writer) .and_then(|_| - Ok(write!(self.writer, "\n{}", page_404)?) + Ok(write!(self.writer, "Content-Type: text/html\n\n{}", page_404)?) ).unwrap_or(()) } |