Skip to content

Commit

Permalink
remove failing read
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed Jan 22, 2025
1 parent f500a89 commit 10bfa8f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tir/tirClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package tir
import (
"encoding/json"
"errors"
"io"
"net/http"
"time"

Expand Down Expand Up @@ -155,10 +154,6 @@ func parseTirResponse(resp http.Response) (trustedIssuer TrustedIssuer, err erro
return trustedIssuer, ErrorTirEmptyResponse
}

body, _ := io.ReadAll(resp.Body)

logging.Log().Warnf("The body is %s", string(body))

err = json.NewDecoder(resp.Body).Decode(&trustedIssuer)
if err != nil {
logging.Log().Warn("Was not able to decode the tir-response.")
Expand Down Expand Up @@ -217,7 +212,6 @@ func (tc TirHttpClient) requestIssuerWithVersion(tirEndpoint string, didPath str
return nil, ErrorTirNoResponse
}

//common.GlobalCache.IssuerCache.Set(cacheKey, resp, cache.DefaultExpiration)
return resp, err
}

Expand Down

0 comments on commit 10bfa8f

Please sign in to comment.