mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
fix: index of ReadJSONProtobuf options
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user