File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
authz/src/main/java/io/grpc/authz Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1717package io .grpc .authz ;
1818
1919import static com .google .common .base .Preconditions .checkNotNull ;
20+ import static java .nio .charset .StandardCharsets .UTF_8 ;
2021
2122import com .google .common .annotations .VisibleForTesting ;
2223import com .google .common .base .Strings ;
@@ -77,7 +78,7 @@ void updateInternalInterceptor() throws IOException {
7778 if (currentTime .equals (lastModifiedTime )) {
7879 return ;
7980 }
80- String policyContents = new String (Files .readAllBytes (policyFile .toPath ()));
81+ String policyContents = new String (Files .readAllBytes (policyFile .toPath ()), UTF_8 );
8182 lastModifiedTime = currentTime ;
8283 internalAuthzServerInterceptor = AuthorizationServerInterceptor .create (policyContents );
8384 if (testCallback != null ) {
You can’t perform that action at this time.
0 commit comments