Go nethttp request body is always nil : The http request body is always nil. Why is this happening? I am using the gokit toolkit. Below code is part of the handler.

    func decodeCreateRequest(_ context.Context, r *http.Request) 
    (interface{}, error) {
        req := endpoint.CreateRequest{}
        err := json.NewDecoder(r.Body).Decode(&req)
        return req, err
    }