Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions protocol/envelope.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package protocol
// payload, the structure is to be used as a ready to use Ditto message.
type Envelope struct {
Topic *Topic `json:"topic"`
Headers *Headers `json:"headers,omitempty"`
Headers Headers `json:"headers,omitempty"`
Path string `json:"path"`
Value interface{} `json:"value,omitempty"`
Fields string `json:"fields,omitempty"`
Expand All @@ -32,7 +32,7 @@ func (msg *Envelope) WithTopic(topic *Topic) *Envelope {
}

// WithHeaders sets the Headers of the Envelope.
func (msg *Envelope) WithHeaders(headers *Headers) *Envelope {
func (msg *Envelope) WithHeaders(headers Headers) *Envelope {
msg.Headers = headers
return msg
}
Expand Down
Loading