From c138e9ad3e365b227d6dbe8618fb93f195d95121 Mon Sep 17 00:00:00 2001 From: Gunwant Jain Date: Tue, 29 Dec 2020 21:37:54 +0530 Subject: [PATCH] fix MIME types and add examples cpp files were getting recognised as "text/csrc". checking subtrings is a better way to compare MIME types. Signed-off-by: Gunwant Jain --- src/main.rs | 51 +++++++++++++++++++++++++++----------- templates/pretty.html.tera | 2 +- 2 files changed, 37 insertions(+), 16 deletions(-) diff --git a/src/main.rs b/src/main.rs index 128d6e4..1d34221 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,9 +31,9 @@ fn pretty_retrieve(id: PasteId) -> Option