Skip to content

Commit

Permalink
Merge pull request #5 from Comcast/feature/use_wrp_content_types
Browse files Browse the repository at this point in the history
use the WRP constants for Content-Type
  • Loading branch information
johnabass authored Apr 12, 2017
2 parents 27e2bca + 547dd27 commit 70b283d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/talaria/primaryHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ func NewPrimaryHandler(logger logging.Logger, manager device.Manager, v *viper.V
Router: manager,
}).
Methods("POST", "PATCH").
Headers("Content-Type", "application/json")
Headers("Content-Type", wrp.JSON.ContentType())

handler.Handle("/device", &device.MessageHandler{
Logger: logger,
Decoders: poolFactory.NewDecoderPool(wrp.Msgpack),
Router: manager,
}).
Methods("POST", "PATCH").
Headers("Content-Type", "application/wrp")
Headers("Content-Type", wrp.Msgpack.ContentType())

handler.Handle("/connect", &device.ConnectHandler{
Logger: logger,
Expand Down

0 comments on commit 70b283d

Please sign in to comment.