mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-04-06 22:47:38 +03:00
Disallow HEAD/GET requests with body
This commit is contained in:
parent
12f85cceb1
commit
b805d49cfd
3 changed files with 24 additions and 11 deletions
|
@ -539,7 +539,7 @@ func (s *Server) parsePublishParams(r *http.Request, v *visitor, m *message) (ca
|
|||
if actionsStr != "" {
|
||||
m.Actions, err = parseActions(actionsStr)
|
||||
if err != nil {
|
||||
return false, false, "", false, errHTTPBadRequestActionsInvalid
|
||||
return false, false, "", false, err // wrapped errHTTPBadRequestActionsInvalid
|
||||
}
|
||||
}
|
||||
unifiedpush = readBoolParam(r, false, "x-unifiedpush", "unifiedpush", "up") // see GET too!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue