Skip to content

Commit

Permalink
fix CLOSED->CLOSE marshaling on CloseEnvelope.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Dec 1, 2023
1 parent 3adb1cd commit 775821f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion envelopes.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (v *CloseEnvelope) UnmarshalJSON(data []byte) error {

func (v CloseEnvelope) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
w.RawString(`["CLOSED",`)
w.RawString(`["CLOSE",`)
w.Raw(json.Marshal(string(v)))
w.RawString(`]`)
return w.BuildBytes()
Expand Down

0 comments on commit 775821f

Please sign in to comment.