pagekit / vue-resource

The HTTP client for Vue.js
MIT License
10.08k stars 1.6k forks source link

PATCH body not sent #680

Closed variable closed 6 years ago

variable commented 6 years ago

When I am sending patch request as below:

Vue.http.patch('/api/todos/'+todo.uuid+'/', {completed_at: todo.completed_at}).then(response => {
                context.dispatch('load_data')
            });

browser console tells me the request payload is {}

What is Expected?

Expected payload to be {completed_at: '2018xxxxxxxxx'}

variable commented 6 years ago

Turned out to be a problem on my side, todo.completed_at is undefined.