wrap response rewrite operation with validation check (#7727)

pull/8915/head
hungdoo 2 years ago committed by GitHub
parent e82c88317e
commit c03b2ebbc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save