fable 3.0.58 → 3.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fable",
3
- "version": "3.0.58",
3
+ "version": "3.0.59",
4
4
  "description": "An entity behavior management and API bundling library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -103,6 +103,15 @@ class FableServiceRestClient extends libFableServiceBase
103
103
 
104
104
  let tmpOptions = this.preRequest(pOptions);
105
105
 
106
+ if (!tmpOptions.hasOwnProperty('headers'))
107
+ {
108
+ tmpOptions.headers = {};
109
+ }
110
+ if (!tmpOptions.headers.hasOwnProperty('Content-Type'))
111
+ {
112
+ tmpOptions.headers['Content-Type'] = 'application/json';
113
+ }
114
+
106
115
  tmpOptions.RequestStartTime = this.fable.log.getTimeStamp();
107
116
 
108
117
  if (this.TraceLog)