Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutchinson committed Apr 10, 2024
1 parent 99254b0 commit 3cfe1f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binary_transparency/firmware/internal/client/client.go
Expand Up @@ -96,9 +96,9 @@ func (c SubmitClient) PublishFirmware(manifest, image []byte) error {
if err != nil {
return fmt.Errorf("failed to publish to log endpoint (%s): %w", u, err)
}
if resp.Request.Method != "POST" {
if r.Request.Method != "POST" {
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections#permanent_redirections
return fmt.Errorf("POST request to %q was converted to %s request to %q", u.String(), resp.Request.Method, resp.Request.URL)
return fmt.Errorf("POST request to %q was converted to %s request to %q", u.String(), r.Request.Method, r.Request.URL)
}
if r.StatusCode != http.StatusOK {
return errFromResponse("failed to submit to log", r)
Expand Down

0 comments on commit 3cfe1f9

Please sign in to comment.