mirror of
https://github.com/kataras/iris.git
synced 2025-03-13 21:36:28 +01:00
Merge pull request #1688 from Jyny/fix/index-of-ReadJSONProtobuf-options
fix: index of ReadJSONProtobuf options
This commit is contained in:
commit
b7fb2b1db4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user