Skip to content

Loading…

RESTAdapter sends invalid requests to backend #478

Closed
svasva opened this Issue · 3 comments

4 participants

@svasva

It sets request Content-type to application/json but sends no json for GET requests. That makes express to raise an exception. Here's an issue at express repo: strongloop/express#1316

@eltoro

As a work around I replaced application/json with application/x-www-form-urlencoded for GETs:

ln 5552:
hash.contentType = (type !== 'GET') ? 'application/json; charset=utf-8' : 'application/x-www-form-urlencoded; charset=utf-8';

@pivotal-medici

This looks like a duplicate of #402.

@wagenet
Ember.js member

Closing as duplicate.

@wagenet wagenet closed this
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.