Use Content-type to infer filetype #5

Closed
opened 2025-04-15 21:25:18 +00:00 by Oliver · 0 comments
Owner

src/main.rs Line 178 in 0fd76b1734
let path = filesystem::as_path(&site.site);

At this line, instead of using the file extension to just believe the server that we are getting a certain type of data, we should inspect the content-type header like a browser would do

https://git.oliveratkinson.net/Oliver/internet_mapper/src/commit/0fd76b17347277f3ce342ef03b72e695287d1ba9/src/main.rs#L178 At this line, instead of using the file extension to just believe the server that we are getting a certain type of data, we should inspect the `content-type` header like a browser would do
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Oliver/internet_mapper#5
No description provided.