Fixed HTTP authentication

Also a regression introduced in 1.5-devel. Stable branches not affected.