Fix a bug that prevents basic authentication working on servers that
include a namespace.
Merge pull request #397 from aodn/IMAS-Basic-Authentication

Fix a bug that prevents basic authentication working.