Skip to content

Commit 784ad87

Browse files
thinkpracticeTim De Jong
andauthored
Fixed pfw install command on Linux (#44)
Co-authored-by: Tim De Jong <gitlab@thinkpractice.nl>
1 parent 25fb92f commit 784ad87

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Sources/pfw/Dependencies/PointFreeServer.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ struct LivePointFreeServer: PointFreeServer {
3838
"\(URL.baseURL)/account/the-way/download?token=\(token)&machine=\(machine)&whoami=\(whoami)"
3939
)!
4040
var request = URLRequest(url: url)
41+
request.cachePolicy = .reloadIgnoringLocalCacheData
4142
request.setValue(PFW.configuration.version, forHTTPHeaderField: "X-PFW-Version")
4243
if let sha, !sha.isEmpty {
4344
request.setValue(sha, forHTTPHeaderField: "If-None-Match")
4445
}
45-
let config = URLSessionConfiguration.default
46-
config.urlCache = nil
47-
let session = URLSession(configuration: config)
48-
let (data, response) = try await session.data(for: request)
46+
let (data, response) = try await URLSession.shared.data(for: request)
4947
guard let httpResponse = response as? HTTPURLResponse else {
5048
throw PointFreeServerError.invalidResponse
5149
}

0 commit comments

Comments
 (0)