Skip to content

Commit

Permalink
Update frontend/middleware_validatestatic.go
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Barnes <[email protected]>
  • Loading branch information
katherinelc321 and mbarnes authored May 15, 2024
1 parent 5d2d724 commit aa46870
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions frontend/middleware_validatestatic.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ func MiddlewareValidateStatic(w http.ResponseWriter, r *http.Request, next http.
}
}

if resourceProviderNamespace != "" {
if resourceProviderNamespace != strings.ToLower(api.ProviderNamespace) {
arm.WriteError(w, http.StatusBadRequest, arm.CloudErrorCodeInvalidResourceNamespace, "", "The resource namespace '%s' is invalid.", resourceProviderNamespace)
return
}
}

if resourceName != "" {
if !rxResourceName.MatchString(resourceName) {
arm.WriteError(w, http.StatusBadRequest, arm.CloudErrorCodeResourceNotFound, "", "The Resource '%s/%s' under resource group '%s' is invalid.", api.ResourceType, resourceName, resourceGroupName)
Expand Down

0 comments on commit aa46870

Please sign in to comment.