include "extras" as a header option
This commit is contained in:
parent
42c6d831df
commit
0ab5d20045
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue