You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the method .userMetadata(userMetadata) call requestBuilder.header(entry.getKey(), entry.getValue()); , okhttp check header name and value ascii, but my userMetadata value contains chineses words , okhttp Headers.Builder.addUnsafeNonAscii only check name ascii; @line
,
Replacing Request.Builder.header(String name, String value) with okhttp Headers.Builder.addUnsafeNonAscii and Request.Builder.headers(Headers headers) may solve my problem .
Hope to understand my poor English expression .
The text was updated successfully, but these errors were encountered:
// sample code
MinioClient minioClient = MinioClient.builder().endpoint("https://play.min.io").credentials("Q3AM3UQ867SPQQA43P2F", "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG").build();
ByteArrayInputStream bais = new ByteArrayInputStream(“abcd”);
Map<String, String> userMetadata = new HashMap<>();
userMetadata.put("tag", "商品");
ObjectWriteResponse objectWriteResponse = minioClient.putObject(
PutObjectArgs.builder().bucket("zhangsan").object("my-objectname").stream(
bais, bais.available(), -1)
.userMetadata(userMetadata)
.build());
the method
.userMetadata(userMetadata)
callrequestBuilder.header(entry.getKey(), entry.getValue());
, okhttp check header name and value ascii, but my userMetadata value contains chineses words , okhttp Headers.Builder.addUnsafeNonAscii only check name ascii;@line
minio-java/api/src/main/java/io/minio/MinioClient.java
Line 470 in e529717
Replacing Request.Builder.header(String name, String value) with okhttp Headers.Builder.addUnsafeNonAscii and Request.Builder.headers(Headers headers) may solve my problem .
Hope to understand my poor English expression .
The text was updated successfully, but these errors were encountered: