Collection.sync without parameters send an undefined Content-Type #6

kentaromiura opened this Issue Feb 15, 2013 · 0 comments


None yet

1 participant

when params.contentType is not passed it makes Request send an 'undefined' Content-Type.

I changed that to headers: { 'Content-Type': params.contentType || 'application/json' } so my server will not bitch me that undefined is not a proper Content-Type, but it's probably better to not pass Content-Type at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment