piwik/piwik — pull request #16 by bernardn (2013-01-08 15:20:50+00:00)
Title: Fix  getCurrentHost 

fix getCurrentHost method that failed to return the correct host when used behind a Proxy because it called an IP-related method.
add getOriginalHostFromHeader method for that purpose