torkelo/grafana — pull request #144 by tmack0 (2014-02-26 00:13:00+00:00)
Title: Bugfix for Basic Auth: strip auth from url before using

This fixes the Basic Auth not working issue (issue#16) further, by
removing the auth string from the URL before grafana attempts to use
it. Some js doesn't handle it properly I think, and tries to include the auth
string in dns lookups(?), so the request never even hits the graphite
server when an auth string is present (at least in my attempts). Adding this bit of code to strip out the username:password@ got it to both send the request to the graphite server as well as login via basic auth as expected.