Skip to content

Commit

Permalink
Fixed #23 Microsoft Edge doesn't seem to be pulling down client confi…
Browse files Browse the repository at this point in the history
…guration settings
  • Loading branch information
niemyjski committed Oct 22, 2015
1 parent 171678e commit 63b5c6d
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exceptionless",
"version": "1.1.0",
"version": "1.1.1",
"description": "JavaScript client for Exceptionless",
"license": "Apache-2.0",
"main": "dist/exceptionless.js",
Expand Down
7 changes: 5 additions & 2 deletions dist/exceptionless.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/exceptionless.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/exceptionless.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/exceptionless.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/exceptionless.node.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exceptionless",
"version": "1.1.0",
"version": "1.1.1",
"description": "JavaScript client for Exceptionless",
"license": "Apache-2.0",
"main": "dist/exceptionless.node.js",
Expand Down
6 changes: 5 additions & 1 deletion src/submission/DefaultSubmissionAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export class DefaultSubmissionAdapter implements ISubmissionAdapter {
let useSetTimeout: boolean = false;
function complete(mode: string, xhr: XMLHttpRequest) {
function parseResponseHeaders(headerStr) {
function trim(value) {
return value.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
}

let headers = {};
let headerPairs = (headerStr || '').split('\u000d\u000a');
for (let index: number = 0; index < headerPairs.length; index++) {
Expand All @@ -23,7 +27,7 @@ export class DefaultSubmissionAdapter implements ISubmissionAdapter {
// if the header value has the string ": " in it.
let separator = headerPair.indexOf('\u003a\u0020');
if (separator > 0) {
headers[headerPair.substring(0, separator).toLowerCase()] = headerPair.substring(separator + 2);
headers[trim(headerPair.substring(0, separator).toLowerCase())] = headerPair.substring(separator + 2);
}
}

Expand Down

0 comments on commit 63b5c6d

Please sign in to comment.