Merge eedd1d086bf51271b97363c67dd9d7a0b2362c2e into f11e95e3fb95b072a6ff38a3704d6d13eac4d23d

This commit is contained in:
kukies007 2025-02-25 20:54:44 +00:00 committed by GitHub
commit f5cb42bf1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2501,7 +2501,11 @@ static switch_status_t fetch_cache_data(http_file_context_t *context, const char
if (save_path) {
while(--tries && (client->fd == 0 || client->fd == -1)) {
#ifdef WIN32
client->fd = open(save_path, O_CREAT | O_WRONLY | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR);
#else
client->fd = open(save_path, O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR);
#endif
}
if (client->fd < 0) {