diff options
| author | Julie Qiu <julie@golang.org> | 2020-07-07 21:51:35 -0400 |
|---|---|---|
| committer | Julie Qiu <julie@golang.org> | 2020-07-08 13:28:41 +0000 |
| commit | 71c954f70eeee31a7c9f0700a90573895f2e327d (patch) | |
| tree | dd35c972be3ad1179c853e7c882b8f7f5413ac4a /internal/queue/queue.go | |
| parent | 8097b5baff43847c1a98ba611262f518ae085276 (diff) | |
| download | go-x-pkgsite-71c954f70eeee31a7c9f0700a90573895f2e327d.tar.xz | |
content,internal: allow POST requests for fetch endpoint
The frontend now accepts POST requests, which is used for the /fetch
endpoint. The /fetch endpoint will return the standard 404 page when a
GET request is made. When a POST request is made, it will return a
plain text response.
serveDetails and serveSearch now check the request method to ensure
a GET request is being made.
Fixes golang/go#39979.
Change-Id: Icc4d7f6ab7ebdbabdae43eab5a1c29a6446651bb
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/241378
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/queue/queue.go')
0 files changed, 0 insertions, 0 deletions
