Allow adding an extension to a shortened link #27
Labels
No Label
bug
feature
good-beginner-bug
needs-test
question
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: electricdusk/rushlink#27
Loading…
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?
This allows some (IRC) clients to detect the link as, for example, a link to an image, and showing additional UI options to expand the image inline.
https://hashru.link/PVwZ
https://hashru.link/PVwZ.gif
https://hashru.link/PVwZ#.gif
Questions:
Content-Type
response header?First of all, I kinda think that IRC clients should first do a
HEAD
request, before inferring anything about the URL. However, if they don't, and we can fix it, we really should.I don't think it should, because it feel that it could allow the crafting of very malicious links. On the other hand, if we don't do this, users can upload
.jpg
files that are really of different file types. Which behavior is better?Looking at
0x0.st
, they have the server add the extension to the URL. I think we should also do this. Moreover, deleting information is easier than adding it.