mirror of https://github.com/portainer/portainer
wrap response rewrite operation with validation check (#7727)
parent
e82c88317e
commit
c03b2ebbc1
|
@ -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…
Reference in New Issue