title: Golang HTTP Request returning 200 response but empty body
body: <p>I'm doing a post request and I get a 200 OK response. I also receive the headers. However, the body keeps coming back empty.
  There should be a body, when I run it in postman the body shows up. What am I missing here?</p>
  
  <pre><code>func AddHealthCheck(baseURL string, payload HealthCheck, platform string, hostname string) (string, error) {
      url := fmt.Sprintf(baseURL+"add-healthcheck/%s/%s", platform, hostname)
  
      //convert go struct to json
      jsonPayload, err := json.Marshal(payload)
      if err != nil {
          log.Error("[ADD HEALTH CHECK] Could not convert go struct to json : ", err)
          return "", err
      }
  
      // Create client &amp; set timeout
      client := &amp;http.Client{}
      client.Timeout = time.Second * 15
  
      // Create request
      req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonPayload))
      if err != nil {
          log.Error("[ADD HEALTH CHECK] Could not create request : ", err)
          return "", err
      }
      req.Header.Set("Content-Type", "application/json")
  
      // Fetch Request
      resp, err := client.Do(req)
      if err != nil {
          log.Error("[ADD HEALTH CHECK] Could not fetch request : ", err)
          return "", err
      }
      defer resp.Body.Close()
  
      // Read Response Body
      respBody, err := ioutil.ReadAll(resp.Body)
      if err != nil {
          log.Error("[HEALTH CHECK] Could not read response body : ", err)
          return "", err
      }
  
      fmt.Println("response Status : ", resp.Status)
      fmt.Println("response Headers : ", resp.Header)
      fmt.Println("response Body : ", string(respBody))
  
      return string(respBody), nil
  }
  </code></pre>