Explorar el Código

Return cached response body when necessary

gabrielseibel1 hace 1 año
padre
commit
a950189d08
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pro/license.go

+ 1 - 1
pro/license.go

@@ -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()