Explorar o código

Fix problem when http:// contains upper case

Gaël Métais %!s(int64=10) %!d(string=hai) anos
pai
achega
928e8f14ea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/index.js

+ 1 - 1
lib/index.js

@@ -14,7 +14,7 @@ var yellowLabTools = function(url, options) {
 
     } else {
 
-        if (url.indexOf('http://') !== 0 && url.indexOf('https://') !== 0) {
+        if (url.toLowerCase().indexOf('http://') !== 0 && url.toLowerCase().indexOf('https://') !== 0) {
             url = 'http://' + url;
         }