wantguns / bin

highly opinionated, minimal pastebin
https://basedbin.fly.dev
GNU Lesser General Public License v3.0
194 stars 20 forks source link

No "raw" link #22

Closed Tofee closed 9 months ago

Tofee commented 9 months ago

Hi,

Yesterday I sent a diff paste to a friend, with syntax highlighting; the url was something like example.com/p/SF37PK.diff . However he wanted to download the raw text, and found no obvious way of doing that... After a while he found out that the raw version can be accessed by stripping the file extension from the URL link.

Would it be possible to add a simple "Raw" button, that links to the same URL without the extension? It looks quite straightforward.

Tofee commented 9 months ago

I realize that this raw URL is described in the README, in the API section. However, it's nearly impossible for the recipient user to guess what that URL would be.