Skip to content

Commit

Permalink
Merge pull request #22 from vapor/file-path
Browse files Browse the repository at this point in the history
file-path update
  • Loading branch information
loganwright authored Sep 6, 2016
2 parents 54d16c0 + e901524 commit bf1515f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/TLS/Certificates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ public enum Certificates {

extension Certificates {
public static var mozilla: Certificates {
let root = #file.components(separatedBy: "/").dropLast(3).joined(separator: "/")
let root = #file.characters
.split(separator: "/", omittingEmptySubsequences: false)
.dropLast(3)
.map { String($0) }
.joined(separator: "/")
return .certificateAuthority(
signature: .signedFile(
caCertificateFile: root + "/Certs/mozilla_certs.pem"
Expand Down

0 comments on commit bf1515f

Please sign in to comment.