fix HTTP basic authentication