Skip to content

Commit

Permalink
Bugfix: datajs library fills this.headers with headers that stay fore…
Browse files Browse the repository at this point in the history
…ver. Problem occures when the $batch request sets the "Content-Type: multipart/mixed; boundary=changeset_xxxxx" header, xxx stays forever and is not overwritten by datajs. Therefor the server ignores all requests any $batch request after the first one.
  • Loading branch information
Kjartan Ferstl committed Jul 18, 2016
1 parent a877a12 commit d01ba43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/b00_breeze.dataService.odata.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

OData.read({
requestUri: url,
headers: this.headers
headers: __extend({}, this.headers)
},
function (data, response) {
var inlineCount;
Expand Down Expand Up @@ -228,7 +228,7 @@
var contentKeys = saveContext.contentKeys;

OData.request({
headers: this.headers,
headers: __extend({}, this.headers),
requestUri: url,
method: "POST",
data: requestData
Expand Down

0 comments on commit d01ba43

Please sign in to comment.