Bug fix
Added possibility for http auth