Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
move percent-encoding of # to loader implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 8, 2015
1 parent 8e73d6a commit a136e59
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/system-fetch.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
var fetchTextFromURL;
if (typeof XMLHttpRequest != 'undefined') {
fetchTextFromURL = function(url, fulfill, reject) {
// percent encode just '#' in urls
// according to https://github.com/jorendorff/js-loaders/blob/master/browser-loader.js#L238
// we should encode everything, but it breaks for servers that don't expect it
// like in (https://github.com/systemjs/systemjs/issues/168)
if (isBrowser)
url = url.replace(/#/g, '%23');

var xhr = new XMLHttpRequest();
var sameDomain = true;
var doTimeout = false;
Expand Down

0 comments on commit a136e59

Please sign in to comment.