commit | 51b22ef31af8bf2cb877aab9d56031bae8313a18 | [log] [tgz] |
---|---|---|
author | Andrew Bonventre <andybons@golang.org> | Thu Jul 16 13:05:25 2020 -0400 |
committer | Andrew Bonventre <andybons@golang.org> | Thu Jul 16 19:46:36 2020 +0000 |
tree | 52c2070ee706bd3bf4bcb77038a040ee2a2262b3 | |
parent | a8d8c125b016bb27c9959b7b418d2c860db12eec [diff] |
internal/dl: add CORS support to JSON endpoint This change allows users to request golang.org/dl/?mode=json via Cross-Origin Resource Sharing (CORS). It also removes the golangorg build tag as it did not seem necessary and adds tests for the “include” GET parameter. Updates golang/go#29206 Fixes golang/go#40253 Change-Id: I5306a264c4ac2a6e6f49cfb53db01eef6b7f4473 Reviewed-on: https://go-review.googlesource.com/c/website/+/243118 Run-TryBot: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alexander Rakoczy <alex@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This repository holds the Go Website server code and content.
The easiest way to install is to run go get -u golang.org/x/website
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/website
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the website repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.