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:
parent
e82c88317e
commit
c03b2ebbc1
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue