Skip to content

Commit

Permalink
Merge pull request #41 from Comcast/fix/change-wrp-to-msgpack
Browse files Browse the repository at this point in the history
Change content-type wrp to msgpack.
  • Loading branch information
njharter authored Aug 10, 2017
2 parents bd79611 + 37a0eac commit f19501d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/caduceus/outboundSender.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func (obs *CaduceusOutboundSender) QueueWrp(req CaduceusRequest, metaData map[st
event: eventType,
transID: transID,
deviceID: deviceID,
contentType: "application/wrp",
contentType: "application/msgpack",
}
outboundReq.req.Telemetry.TimeOutboundAccepted = time.Now()
obs.queue <- outboundReq
Expand Down
2 changes: 1 addition & 1 deletion src/caduceus/senderWrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (sw *CaduceusSenderWrapper) Queue(req CaduceusRequest) {
}
}

case "application/wrp":
case "application/msgpack":
decoder := wrp.NewDecoderBytes(req.Payload, wrp.Msgpack)
message := new(wrp.Message)
if err := decoder.Decode(message); nil == err {
Expand Down
2 changes: 1 addition & 1 deletion src/caduceus/senderWrapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func TestSwSimple(t *testing.T) {
}
wrp := CaduceusRequest{
Payload: buffer.Bytes(),
ContentType: "application/wrp",
ContentType: "application/msgpack",
TargetURL: "http://foo.com/api/v2/notify/mac:112233445566/event/wrp",
}

Expand Down

0 comments on commit f19501d

Please sign in to comment.