From 95645107ac6e3605515d1d9d2845da75880d9386 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Mon, 18 Sep 2023 00:29:16 -0400 Subject: [PATCH] New tinylog about updating Agis to better parse mimetypes --- content/tinylog.gmi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/content/tinylog.gmi b/content/tinylog.gmi index d5ce7c2..76bf34d 100644 --- a/content/tinylog.gmi +++ b/content/tinylog.gmi @@ -4,10 +4,10 @@ Meta( published: Some(Time( year: 2023, month: 9, - day: 5, - hour: 22, - minute: 41, - second: 50, + day: 18, + hour: 4, + minute: 29, + second: 14, )), tags: [ "tinylog", @@ -18,6 +18,10 @@ Some shorter thoughts and updates that might not warrant a full gemlog entry. I' => .. Home +## 2023-09-18 04:29 UTC +I just made a change to Agis that serves up certain mimetypes based on the file extension. Previously, for everything other than .gmi files it was using the `tree_magic_mini` crate to read the file's magic data. However, I noticed that this was serving up png images as 'application/octet-stream', which is kind of ridiculous. + +I may have to write my own mime parser at some point to get this correct. I'm shocked at how bad this is, because png files are one of the easiest mimetypes to identify based on their magic data marker. ## 2023-09-05 22:41 UTC Had some downtime earlier due to replacing our router with a more powerful model. Took longer than it should have to get everything reconfigured. Guess I have a lot of things that depend on IP addresses not changing.