mirror of
https://github.com/kataras/iris.git
synced 2025-03-15 06:46:26 +01:00
fix: index of ReadJSONProtobuf options
This commit is contained in:
parent
8fe0d208b3
commit
8ec1c14a1a
|
@ -2407,7 +2407,7 @@ func (ctx *Context) ReadJSONProtobuf(ptr proto.Message, opts ...ProtoUnmarshalOp
|
||||||
|
|
||||||
opt := defaultProtobufUnmarshalOptions
|
opt := defaultProtobufUnmarshalOptions
|
||||||
if len(opts) > 0 {
|
if len(opts) > 0 {
|
||||||
opt = opts[1]
|
opt = opts[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
return opt.Unmarshal(rawData, ptr)
|
return opt.Unmarshal(rawData, ptr)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user