Fix for basic HTTP authentication returning 3 or more errors