Skip to content

Commit

Permalink
Fixed slow download on MacOS (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhealey authored Jan 19, 2025
1 parent bbf5b5b commit 24af3f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions JUCE/modules/juce_core/native/juce_mac_Network.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1143,10 +1143,10 @@ void createConnection()
// Workaround for an Apple bug. See https://github.com/AFNetworking/AFNetworking/issues/2334
[req HTTPBody];

if (@available (macOS 10.10, *))
connection = std::make_unique<URLConnectionState> (req, numRedirectsToFollow);
//if (@available (macOS 10.10, *))
// connection = std::make_unique<URLConnectionState> (req, numRedirectsToFollow);
#if JUCE_MAC
else
//else
connection = std::make_unique<URLConnectionStatePreYosemite> (req, numRedirectsToFollow);
#endif
}
Expand Down

0 comments on commit 24af3f6

Please sign in to comment.