divan/gorilla-xmlrpc

Panic when service methods args or reply are not structs

wade-p opened this issue · 1 comments

the XMLRPC spec states that params can have a scalar value, currently if a method proto looks something similar to this:

func (l *ListService) List_contents(r *http.Request, args *[]byte, reply  *struct {Message int}) error {

It panics, I have a fix, it's kind of ugly since i'm new to Go, but will submit a PR shortly.

Hmmm, I think this was user error...