Skip to content

Commit 031960f

Browse files
author
Robert Damphousse
committed
1.3.6 release candidate 2 - not stable!
Attempting to package the fixes in PR #177 and 1.3.5
1 parent 747ebb8 commit 031960f

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-stormpath",
3-
"version": "1.3.6-rc.1",
3+
"version": "1.3.6-rc.2",
44
"main": [
55
"dist/stormpath-sdk-react.min.js"
66
],

dist/stormpath-sdk-react.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,7 +2890,10 @@ return /******/ (function(modules) { // webpackBootstrap
28902890
};
28912891

28922892
if (body && (typeof body === 'undefined' ? 'undefined' : _typeof(body)) === 'object') {
2893-
request.setRequestHeader('Content-Type', 'application/json; charset=utf-8');
2893+
// Avoid setting if the content type if it is explicitly specified in the headers
2894+
if (_typeof(headers['ContentType']) === undefined) {
2895+
request.setRequestHeader('Content-Type', 'application/json; charset=utf-8');
2896+
}
28942897
request.send(JSON.stringify(body));
28952898
} else {
28962899
request.send();
@@ -2920,7 +2923,7 @@ return /******/ (function(modules) { // webpackBootstrap
29202923
// Only set the X-Stormpath-Agent header if we're on the same domain as the requested URI.
29212924
// This because we want to avoid CORS requests that require you to have to whitelist the X-Stormpath-Agent header.
29222925
if (_utils2.default.isRelativeUri(uri) || _utils2.default.isSameHost(uri, window.location.href)) {
2923-
headers['X-Stormpath-Agent'] = 'stormpath-sdk-react/' + ("1.3.4") + ' react/' + _react2.default.version;
2926+
headers['X-Stormpath-Agent'] = 'stormpath-sdk-react/' + ("1.3.6-rc.2") + ' react/' + _react2.default.version;
29242927
}
29252928

29262929
makeHttpRequest(method, uri, body, headers, function (err, result) {

dist/stormpath-sdk-react.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-stormpath",
3-
"version": "1.3.6-rc.1",
3+
"version": "1.3.6-rc.2",
44
"description": "Stormpath SDK for React.",
55
"author": "Stormpath, Inc.",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)