mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-11 07:19:58 +00:00
🔨 Replace ApiServer
naming with Hub
This commit is contained in:
@@ -29,7 +29,7 @@ func Do(req *http.Request, client *http.Client) (*http.Response, error) {
|
||||
func checkError(response *http.Response, errInOperation error) (*http.Response, error) {
|
||||
if errInOperation != nil {
|
||||
return response, errInOperation
|
||||
// Check only if status != 200 (and not status >= 300). Agent APIs return only 200 on success.
|
||||
// Check only if status != 200 (and not status >= 300). Hub return only 200 on success.
|
||||
} else if response.StatusCode != http.StatusOK {
|
||||
body, err := io.ReadAll(response.Body)
|
||||
response.Body.Close()
|
||||
|
Reference in New Issue
Block a user