diff --git a/context/context.go b/context/context.go index aaffe103..b5e139b2 100644 --- a/context/context.go +++ b/context/context.go @@ -2407,7 +2407,7 @@ func (ctx *Context) ReadJSONProtobuf(ptr proto.Message, opts ...ProtoUnmarshalOp opt := defaultProtobufUnmarshalOptions if len(opts) > 0 { - opt = opts[1] + opt = opts[0] } return opt.Unmarshal(rawData, ptr)