Permalink
Browse files

external https file support

  • Loading branch information...
1 parent 3ba3b1b commit 68d650a3aab68566219fc56102940ded95583eac @thegoleffect thegoleffect committed Oct 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/assetmanager.js
View
@@ -96,7 +96,7 @@ module.exports = function assetManager (settings) {
group.files.splice(index, 1);
return;
}
- if (file.match(/^http:\/\//)) {
+ if (file.match(/^http:\/\//) || file.match(/^https:\/\//)) {
return;
}
fs.watchFile(group.path + file, function (old, newFile) {
@@ -259,7 +259,7 @@ module.exports = function assetManager (settings) {
this.getFile = function (file, path, groupName, callback) {
var isExternal = false;
- if (file && file.match(/^http:\/\//)) {
+ if (file && (file.match(/^http:\/\//) || file.match(/^https:\/\//))) {
isExternal = true;
}

0 comments on commit 68d650a

Please sign in to comment.