Fixing problem with http auth