]> Sergey Matveev's repositories - public-inbox.git/commit
www: stricter regexp for 405 errors
authorEric Wong <e@yhbt.net>
Tue, 4 Feb 2020 04:44:21 +0000 (04:44 +0000)
committerEric Wong <e@yhbt.net>
Tue, 4 Feb 2020 21:39:50 +0000 (21:39 +0000)
commitc5ce0f75020db9b3fa7dae9958bedcdb08452e04
tree0c446ccf8161ab7027c48827aa1e903f1d6e40db
parent69a58f258672fb0b4b5768b6d1cd75c6b1c5f3a8
www: stricter regexp for 405 errors

We want to match "GET" and "HEAD" exactly, not requests which
start with "GET" or end with "HEAD".  This doesn't seem like
a real problem for public-inboxes which are actually public
data anyways.
lib/PublicInbox/WWW.pm
t/httpd.t