Skip to content

Commit

Permalink
Update RESTBuilder default headers (lower-case).
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Jan 20, 2018
1 parent 9601b18 commit 3bd5c0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion builders.js
Original file line number Diff line number Diff line change
Expand Up @@ -3705,7 +3705,7 @@ function async_wait(arr, onItem, onCallback, index) {
function RESTBuilder(url) {

this.$url = url;
this.$headers = { 'User-Agent': 'Total.js/v' + F.version_header, Accept: 'application/json, text/plain, text/plain, text/xml' };
this.$headers = { 'user-agent': 'Total.js/v' + F.version_header, accept: 'application/json, text/plain, text/plain, text/xml' };
this.$method = 'get';
this.$timeout = 10000;
this.$type = 0; // 0 = query, 1 = json, 2 = urlencode, 3 = raw
Expand Down
4 changes: 4 additions & 0 deletions changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
======= 2.9.3

- updated: RESTBuilder default headers are lower-case

======= 2.9.2

- added: `controller.html(body, [headers])`
Expand Down

0 comments on commit 3bd5c0d

Please sign in to comment.