Skip to content

Commit 199e068

Browse files
committed
Fix NGINX Plus controller
1 parent b8e7dcb commit 199e068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx-controller/nginx/plus/nginx_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ func checkIfUpstreamConfIsAccessible(endpoint string) error {
5050
return fmt.Errorf("upstream_conf endpoint %v is not accessible: %v", endpoint, err)
5151
}
5252

53-
if resp.StatusCode != http.StatusNotFound {
54-
return fmt.Errorf("upstream_conf endpoint %v is not accessible: expected 404 response, got %v", endpoint, resp.StatusCode)
53+
if resp.StatusCode != http.StatusBadRequest {
54+
return fmt.Errorf("upstream_conf endpoint %v is not accessible: expected 400 response, got %v", endpoint, resp.StatusCode)
5555
}
5656

5757
bodyStr := string(body)

0 commit comments

Comments
 (0)