Skip to content

internal/gitserver: Reuse code to read response body

Warren Gifford requested to merge ig/gitserver-client-cleanup into main

Created by: indradhanush

Change inspired after working on #39358.

This commit has two positive effects:

  1. It unifies all code to read the response body in case of non 200 HTTP response in the client.go file and makes it consistent
  2. It stops ignoring the error from io.ReadAll

Test plan

Existing tests should pass.

Merge request reports

Loading