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 <mbarnes@fedoraproject.org>
  • Loading branch information
katherinelc321 and mbarnes authored May 15, 2024
1 parent 21273de commit 5d2d724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/middleware_validatestatic.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func MiddlewareValidateStatic(w http.ResponseWriter, r *http.Request, next http.

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

0 comments on commit 5d2d724

Please sign in to comment.