Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
vetcher committed Nov 13, 2018
1 parent 8b09620 commit a05ed01
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"bytes"
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strconv"
"time"
Expand Down Expand Up @@ -140,7 +138,7 @@ func (s *Service) roundTrip(reqBody interface{}, dest interface{}, url string) e
return errors.Wrap(err, "encode to json")
}

fmt.Println(string(data))
//fmt.Println(string(data))

r, err := http.NewRequest(http.MethodPost, url, bytes.NewReader(data))
if err != nil {
Expand All @@ -155,10 +153,10 @@ func (s *Service) roundTrip(reqBody interface{}, dest interface{}, url string) e
return errors.Wrap(err, "could not send request")
}
defer resp.Body.Close()
{
/*{
data, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(data))
}
}*/
dec := json.NewDecoder(resp.Body)
dec.DisallowUnknownFields()
if resp.StatusCode != http.StatusOK {
Expand Down

0 comments on commit a05ed01

Please sign in to comment.