Skip to content

Put URL downloading back into Data(contentsOf:) #819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
parkera opened this issue Aug 2, 2024 · 3 comments
Closed

Put URL downloading back into Data(contentsOf:) #819

parkera opened this issue Aug 2, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@parkera
Copy link
Contributor

parkera commented Aug 2, 2024

The new Data reading API doesn't support non-file URLs on non-Darwin systems. This could be a compatibility issue.

see also: https://forums.swift.org/t/data-contentsof-and-new-swift-foundation/73632

@jmschonfeld jmschonfeld self-assigned this Aug 2, 2024
@jmschonfeld
Copy link
Contributor

#820 and swiftlang/swift-corelibs-foundation#5049 will resolve this by adding an up-call to FoundationNetworking on main, I'll also cherry-pick this back to release/6.0 for Swift 6

@jmschonfeld jmschonfeld added the bug Something isn't working label Aug 2, 2024
@jmschonfeld
Copy link
Contributor

Fixed on main, #826 and swiftlang/swift-corelibs-foundation#5058 are the 6.0 cherry-pick PRs

@jmschonfeld
Copy link
Contributor

6.0 PRs are now merged as well - marking this as resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants