|
@@ -343,6 +343,7 @@ class DefaultSession implements Session.ISession {
|
|
url: Private.getSessionUrl(settings.baseUrl, this._id),
|
|
url: Private.getSessionUrl(settings.baseUrl, this._id),
|
|
method: 'PATCH',
|
|
method: 'PATCH',
|
|
data,
|
|
data,
|
|
|
|
+ contentType: 'application/json',
|
|
cache: false
|
|
cache: false
|
|
};
|
|
};
|
|
return ServerConnection.makeRequest(request, settings).then(response => {
|
|
return ServerConnection.makeRequest(request, settings).then(response => {
|
|
@@ -712,7 +713,8 @@ namespace Private {
|
|
url: URLExt.join(settings.baseUrl, SESSION_SERVICE_URL),
|
|
url: URLExt.join(settings.baseUrl, SESSION_SERVICE_URL),
|
|
method: 'POST',
|
|
method: 'POST',
|
|
cache: false,
|
|
cache: false,
|
|
- data: JSON.stringify(model)
|
|
|
|
|
|
+ data: JSON.stringify(model),
|
|
|
|
+ contentType: 'application/json'
|
|
};
|
|
};
|
|
return ServerConnection.makeRequest(request, settings).then(response => {
|
|
return ServerConnection.makeRequest(request, settings).then(response => {
|
|
if (response.xhr.status !== 201) {
|
|
if (response.xhr.status !== 201) {
|