pkgsite/internal/testing
Julie Qiu 0405ee1367 internal/middleware: add URI Too Long check
When the URI path length exceeds 1000, a Status 414
(StatusRequestURITooLong) is now returned. There arent any valid paths
on pkg.go.dev that will require that long of a URL length.

AcceptMethods is renamed to AcceptRequests, since it now also performs
this URI check.

Change-Id: I5fc88a57ef3a78169721d0e53a6d1d7f0f46de3f
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/248378
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-08-13 17:59:08 +00:00
..
dbtest
htmlcheck
integration
pagecheck
sample
testhelper