aboutsummaryrefslogtreecommitdiff
path: root/internal/queue/queue.go
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2020-07-07 21:51:35 -0400
committerJulie Qiu <julie@golang.org>2020-07-08 13:28:41 +0000
commit71c954f70eeee31a7c9f0700a90573895f2e327d (patch)
treedd35c972be3ad1179c853e7c882b8f7f5413ac4a /internal/queue/queue.go
parent8097b5baff43847c1a98ba611262f518ae085276 (diff)
downloadgo-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