diff --git a/dist/lib/swagger.js b/dist/lib/swagger.js
index b1bf318d..1ae6173f 100644
--- a/dist/lib/swagger.js
+++ b/dist/lib/swagger.js
@@ -533,7 +533,7 @@
_ref1 = this.properties;
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
prop = _ref1[_j];
- if ((prop.refModel != null) && (modelsToIgnore[prop.refModel] !== 'undefined') === -1) {
+ if ((prop.refModel != null) && modelsToIgnore.indexOf(prop.refModel) === -1) {
returnVal = returnVal + ('
' + prop.refModel.getMockSignature(modelsToIgnore));
}
}
diff --git a/lib/swagger.js b/lib/swagger.js
index 6089c634..1ae6173f 100644
--- a/lib/swagger.js
+++ b/lib/swagger.js
@@ -53,7 +53,9 @@
useJQuery: this.useJQuery,
url: this.url,
method: "get",
- headers: {},
+ headers: {
+ accept: "application/json"
+ },
on: {
error: function(response) {
if (_this.url.substring(0, 4) !== 'http') {
@@ -304,7 +306,9 @@
url: this.url,
method: "get",
useJQuery: this.useJQuery,
- headers: {},
+ headers: {
+ accept: "application/json"
+ },
on: {
error: function(response) {
return _this.api.fail("Unable to read api '" + _this.name + "' from path " + _this.url + " (server returned " + response.statusText + ")");
@@ -529,7 +533,7 @@
_ref1 = this.properties;
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
prop = _ref1[_j];
- if ((prop.refModel != null) && (modelsToIgnore[prop.refModel] !== 'undefined') === -1) {
+ if ((prop.refModel != null) && modelsToIgnore.indexOf(prop.refModel) === -1) {
returnVal = returnVal + ('
' + prop.refModel.getMockSignature(modelsToIgnore));
}
}