Skip to content

Commit

Permalink
Return cached response body when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielseibel1 committed Nov 16, 2023
1 parent ab352e3 commit a950189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pro/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func validateLicenseKey(encryptedData []byte, publicKey *[32]byte) ([]byte, erro
return nil, err
}
slog.Warn("proceeding with cached response, Netmaker API may be down")
return nil, err
return body, err
}

defer validateResponse.Body.Close()
Expand Down

0 comments on commit a950189

Please sign in to comment.