Hacker News new | past | comments | ask | show | jobs | submit login

but there's no good way for a server to tell if it's requested by a text based client, wttr.in is hard coding a list of text clients' User-Agent [0], which is not so pretty imo. If look for "Accept: text/plain" in request header, curl as the most popular client won't set it.

[0] https://github.com/chubin/wttr.in/blob/4eedafb81356e62b9f1c8...




It's not even text/plain. We need a text/ansi (is there a better name for that?)


I think something like `application/term` would probably be better for this.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: