Skip to content

Commit

Permalink
Merge branch 'master' into jsontag
Browse files Browse the repository at this point in the history
  • Loading branch information
javierprovecho authored Jul 17, 2017
2 parents 0f38d8a + 8f86194 commit bd814e8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions binding/msgpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ func (msgpackBinding) Name() string {
}

func (msgpackBinding) Bind(req *http.Request, obj interface{}) error {

if err := codec.NewDecoder(req.Body, new(codec.MsgpackHandle)).Decode(&obj); err != nil {
//var decoder *codec.Decoder = codec.NewDecoder(req.Body, &codec.MsgpackHandle)
//if err := decoder.Decode(&obj); err != nil {
return err
}
return validate(obj)

}

0 comments on commit bd814e8

Please sign in to comment.