mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 11:11:35 +00:00
Fix DNS allowlist not applying to POST requests.
This commit is contained in:
@@ -206,7 +206,7 @@ func AuthorizeRequest(r *http.Request) (*Authorization, error) {
|
||||
}
|
||||
|
||||
// DNS allowlist gives authority to update but not delete.
|
||||
if r.Method == http.MethodPut || r.Method == http.MethodPut {
|
||||
if r.Method == http.MethodPut || r.Method == http.MethodPost {
|
||||
auth, err = authorizeDNSAllowlist(r)
|
||||
if err != nil && IsUnauthorized(err) {
|
||||
causes = append(causes, err)
|
||||
|
||||
Reference in New Issue
Block a user