include "extras" as a header option

This commit is contained in:
Hunter Kehoe 2023-09-10 11:00:29 -06:00
parent 42c6d831df
commit 0ab5d20045
1 changed files with 1 additions and 1 deletions

View File

@ -1010,7 +1010,7 @@ func (s *Server) parsePublishParams(r *http.Request, m *message) (cache bool, fi
return false, false, "", "", false, errHTTPBadRequestActionsInvalid.Wrap(e.Error()) return false, false, "", "", false, errHTTPBadRequestActionsInvalid.Wrap(e.Error())
} }
} }
extrasStr := readParam(r, "x-extras") extrasStr := readParam(r, "x-extras", "extras")
if extrasStr != "" { if extrasStr != "" {
extras := make(map[string]string) extras := make(map[string]string)
if err := json.Unmarshal([]byte(extrasStr), &extras); err != nil { if err := json.Unmarshal([]byte(extrasStr), &extras); err != nil {