Merge pull request #1476 from micro/namespace-fix

Namespace Fix
This commit is contained in:
ben-toogood 2020-04-03 13:30:30 +01:00 committed by GitHub
commit 46f0bda31e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,9 @@ func (h authHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
// Determine the namespace // Determine the namespace
namespace, err := namespaceFromRequest(req) namespace, err := namespaceFromRequest(req)
if err != nil { if err != nil {
w.WriteHeader(http.StatusInternalServerError) logger.Error(err)
// w.WriteHeader(http.StatusInternalServerError)
namespace = auth.DefaultNamespace
return return
} }