]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6218 --resolve
authorChris Rienzo <chris@rienzo.com>
Thu, 13 Feb 2014 14:18:10 +0000 (09:18 -0500)
committerChris Rienzo <chris@rienzo.com>
Thu, 13 Feb 2014 14:18:10 +0000 (09:18 -0500)
src/mod/applications/mod_http_cache/mod_http_cache.c

index 24ea2aa76cadcd0528dc9a5e427b0874ca8c7a5c..3648f97e804b8a98b74a08a03a8d08b7ead12986 100644 (file)
@@ -331,7 +331,7 @@ static switch_status_t http_put(url_cache_t *cache, http_profile_t *profile, swi
        switch_curl_easy_getinfo(curl_handle, CURLINFO_RESPONSE_CODE, &httpRes);
        switch_curl_easy_cleanup(curl_handle);
 
-       if (httpRes == 200 || httpRes == 201 || httpRes == 204) {
+       if (httpRes == 200 || httpRes == 201 || httpRes == 202 || httpRes == 204) {
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s saved to %s\n", filename, url);
                if (cache_local_file) {
                        cached_url_t *u = NULL;