Fix a bug that prevents basic authentication working on servers that
include a namespace.