Skip to content

Commit

Permalink
Fix CFURLSession_easy_setopt_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
marcprux committed Jan 25, 2025
1 parent 7f52f2c commit 35b9955
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ extension _EasyHandle {

try! fs.close()

try! CFURLSession_easy_setopt_ptr(rawHandle, CFURLSessionOptionCAINFO, aggregateCertPath).asError()
aggregateCertPath.withCString { pathPtr in
try! CFURLSession_easy_setopt_ptr(rawHandle, CFURLSessionOptionCAINFO, UnsafeMutablePointer(mutating: pathPtr)).asError()
}
return
}
#endif
Expand Down

0 comments on commit 35b9955

Please sign in to comment.