Skip to content

Commit 6d3bbd6

Browse files
committed
fix: update auth value str
Signed-off-by: shuiyisong <xixing.sys@gmail.com>
1 parent 1f0acb2 commit 6d3bbd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ingester-protocol/src/main/java/io/greptime/models/AuthInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static AuthInfo noAuthorization() {
5555
* @return the base64 encoded string
5656
*/
5757
public String toBase64() {
58-
String authInfoStr = String.format("%s:%s", this.username, this.password);
58+
String authInfoStr = String.format("Basic %s:%s", this.username, this.password);
5959
return Base64.getEncoder().encodeToString(authInfoStr.getBytes(StandardCharsets.UTF_8));
6060
}
6161

0 commit comments

Comments
 (0)