Skip to content

Commit

Permalink
chore: remove incorrect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Oct 17, 2023
1 parent 731059c commit 6d22fc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/native/message_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ func (m *Message) WithResponseJSONContents(body interface{}) *Message {
return m.WithContents(INTERACTION_PART_RESPONSE, "application/json", []byte(value))
}

// TODO: note that string values here must be NUL terminated.
// Only accepts JSON
// Note that string values here must be NUL terminated.
func (m *Message) WithContents(part interactionPart, contentType string, body []byte) *Message {
cHeader := C.CString(contentType)
defer free(cHeader)
Expand Down

0 comments on commit 6d22fc2

Please sign in to comment.