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

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())
}
}
extrasStr := readParam(r, "x-extras")
extrasStr := readParam(r, "x-extras", "extras")
if extrasStr != "" {
extras := make(map[string]string)
if err := json.Unmarshal([]byte(extrasStr), &extras); err != nil {