Hacker News new | ask | show | jobs
by juliangregorian 4076 days ago
A page of text? With Content-type: text? An example being a shell script?
2 comments

Do you think the average user copying and pasting administrative commands into their shell will stop to check the content encoding of the document they are copying from? Do you trust your browser not to try rendering an ill-defined document with an ambiguous extension?
Do you check the Content-type: header of the response for text/plain before copying? If you do, you'd be in the minority.