microbin
microbin copied to clipboard
Feature request: Automatic raw paste if fetched with curl
TLDR: microbin should default to responding with the raw paste instead of the HTML page if accept: text/html is not provided.
Look at this neat thing:
$ curl -s myip.tf
1.2.3.4
$ curl -s myip.tf -H 'accept: text/html' | cut -c-100
<!DOCTYPE html><meta name="description" content="A quick IP viewer that uses less than 5K of traffic
myip.tf formats its output depending on the Accept header, which browsers automatically set to text/html. This would be a great addition to CLI friendlyness (related: #170)