Skip to content

Commit 66482f6

Browse files
committed
Merge branch 'master' of https://github.com/exceptionless/Exceptionless.JavaScript into feature/additionalInfo
2 parents 56944db + 63b5c6d commit 66482f6

8 files changed

+17
-10
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "exceptionless",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "JavaScript client for Exceptionless",
55
"license": "Apache-2.0",
66
"main": "dist/exceptionless.js",

dist/exceptionless.js

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.node.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "exceptionless",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "JavaScript client for Exceptionless",
55
"license": "Apache-2.0",
66
"main": "dist/exceptionless.node.js",

src/submission/DefaultSubmissionAdapter.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ export class DefaultSubmissionAdapter implements ISubmissionAdapter {
1515
let useSetTimeout: boolean = false;
1616
function complete(mode: string, xhr: XMLHttpRequest) {
1717
function parseResponseHeaders(headerStr) {
18+
function trim(value) {
19+
return value.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
20+
}
21+
1822
let headers = {};
1923
let headerPairs = (headerStr || '').split('\u000d\u000a');
2024
for (let index: number = 0; index < headerPairs.length; index++) {
@@ -23,7 +27,7 @@ export class DefaultSubmissionAdapter implements ISubmissionAdapter {
2327
// if the header value has the string ": " in it.
2428
let separator = headerPair.indexOf('\u003a\u0020');
2529
if (separator > 0) {
26-
headers[headerPair.substring(0, separator).toLowerCase()] = headerPair.substring(separator + 2);
30+
headers[trim(headerPair.substring(0, separator).toLowerCase())] = headerPair.substring(separator + 2);
2731
}
2832
}
2933

0 commit comments

Comments
 (0)