ember-auth-source 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/dist/ember-auth.js +6 -3
- metadata +2 -2
data/dist/ember-auth.js
CHANGED
@@ -206,6 +206,9 @@
|
|
206
206
|
ajax: function(settings) {
|
207
207
|
var def, token;
|
208
208
|
|
209
|
+
if (settings == null) {
|
210
|
+
settings = {};
|
211
|
+
}
|
209
212
|
def = {};
|
210
213
|
if (token = this.get('authToken')) {
|
211
214
|
switch (Auth.Config.get('requestTokenLocation')) {
|
@@ -223,9 +226,9 @@
|
|
223
226
|
}
|
224
227
|
}
|
225
228
|
def.dataType = 'json';
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
+
if (settings.data && (settings.contentType == null) && settings.type !== 'GET') {
|
230
|
+
def.contentType = 'application/json; charset=utf-8';
|
231
|
+
settings.data = JSON.stringify(settings.data);
|
229
232
|
}
|
230
233
|
settings = jQuery.extend(def, settings);
|
231
234
|
return jQuery.ajax(settings);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-auth-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -51,7 +51,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
51
|
version: '0'
|
52
52
|
segments:
|
53
53
|
- 0
|
54
|
-
hash:
|
54
|
+
hash: 675329521
|
55
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
56
|
none: false
|
57
57
|
requirements:
|