requirejs/text — pull request #4 by mbrocious (2012-06-18 20:23:33+00:00)
Title: Lowercase the hostname before comparing

For our application, we have a configuration file that specifies the URL to pull static content. In some scenarios, it may exist in the config file with the same hostname as the primary URL but with a different case. In those instances, the plugin was appending .js because it thought it had to go cross domain, when it reality the content was being served from the same host. Lowercasing the hostname corrects that issue.