Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/website: download.js incorrectly defines browser OS #41537
What did you do?
Opened golang.org/doc/install in different browsers using Linux OS.
What did you expect to see?
Expected to see that "Download" button has a filename for Linux.
What did you see instead?
JS incorrectly defines OS as a "Unix" system and because of that user sees an empty button (there's no filename for unix golang binary to download) that redirects him to https://golang.org/dl/ if user clicks it.
How it happens: