Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Open
kentaromiura opened this Issue · 0 comments

1 participant

@kentaromiura

https://github.com/inkling/backbone-mootools/blob/master/MooToolsAdapter.js#L320
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
Something went wrong with that request. Please try again.