diff --git a/ingester-protocol/src/main/java/io/greptime/models/AuthInfo.java b/ingester-protocol/src/main/java/io/greptime/models/AuthInfo.java index f8ed5b4..a80c533 100644 --- a/ingester-protocol/src/main/java/io/greptime/models/AuthInfo.java +++ b/ingester-protocol/src/main/java/io/greptime/models/AuthInfo.java @@ -55,7 +55,7 @@ public static AuthInfo noAuthorization() { * @return the base64 encoded string */ public String toBase64() { - String authInfoStr = String.format("%s:%s", this.username, this.password); + String authInfoStr = String.format("Basic %s:%s", this.username, this.password); return Base64.getEncoder().encodeToString(authInfoStr.getBytes(StandardCharsets.UTF_8)); }