message: Use Path's logic for file extensions instead of rewriting it
  This avoids bugs when files are named `svg`, without an extension.
diff: @@ -18,6 +18,7 @@ use iron::{
  use lol_html::errors::RewritingError;
  use router::Router;
  use serde::Serialize;
  +use std::path::Path;
  #[derive(Clone)]
  pub struct RustLangRedirector {
  @@ -644,8 +645,8 @@ impl Handler for SharedResourceHandler {
  fn handle(&self, req: &mut Request) -> IronResult<Response> {
  let path = req.url.path();
  let filename = path.last().unwrap(); // unwrap is fine: vector is non-empty
  - let suffix = filename.split('.').last().unwrap(); // unwrap is fine: split always works
  - if ["js", "css", "woff", "svg"].contains(&suffix) {
  + if let Some(extension) = Path::new(filename).extension() {
  + if ["js", "css", "woff", "svg"].iter().any(|s| *s == extension) {
  let storage = extension!(req, Storage);
  let config = extension!(req, Config);
  @@ -653,6 +654,7 @@ impl Handler for SharedResourceHandler {
  return Ok(file.serve());
  }
  }
  + }
  // Just always return a 404 here - the main handler will then try the other handlers
  Err(Nope::ResourceNotFound.into())
  