1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

wrap response rewrite operation with validation check (#7727)

This commit is contained in:
hungdoo 2023-05-07 08:52:03 +07:00 committed by GitHub
parent e82c88317e
commit c03b2ebbc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -670,7 +670,9 @@ func (transport *Transport) executeRequestAndRewriteResponse(request *http.Reque
return response, err
}
err = operation(response, executor)
if response.StatusCode == http.StatusOK {
err = operation(response, executor)
}
return response, err
}