New tinylog about updating Agis to better parse mimetypes
This commit is contained in:
parent
a79fd69ed1
commit
95645107ac
1 changed files with 8 additions and 4 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue