Use Content-type
to infer filetype
#5
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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