mirror of
https://github.com/portainer/portainer.git
synced 2025-07-29 18:29:44 +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
|
return response, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if response.StatusCode == http.StatusOK {
|
||||||
err = operation(response, executor)
|
err = operation(response, executor)
|
||||||
|
}
|
||||||
return response, err
|
return response, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue