Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Examples/Echo/Generated/echo.server.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ public class Echo_EchoServer {
self.address = address
self.provider = provider
guard
let certificate = try? String(contentsOf: certificateURL),
let key = try? String(contentsOf: keyURL)
let certificate = try? String(contentsOf: certificateURL, encoding: .utf8),
let key = try? String(contentsOf: keyURL, encoding: .utf8)
else {
return nil
}
Expand Down
4 changes: 2 additions & 2 deletions Plugin/Templates/server.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public class {{ .|server:protoFile,service }} {
self.address = address
self.provider = provider
guard
let certificate = try? String(contentsOf: certificateURL),
let key = try? String(contentsOf: keyURL)
let certificate = try? String(contentsOf: certificateURL, encoding: .utf8),
let key = try? String(contentsOf: keyURL, encoding: .utf8)
else {
return nil
}
Expand Down