Return error when status code isn't 2XX or 3XX 39/237639/2 accepted/tizen/unified/20200706.033247 submit/tizen/20200703.062459
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 2 Jul 2020 05:34:15 +0000 (14:34 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 2 Jul 2020 09:28:41 +0000 (18:28 +0900)
Change-Id: Ie2a85db0c87060f9f275a0f86b075eefde284136

agent/download-agent-http-mgr.c

index 4dc9978..7a3d51a 100755 (executable)
@@ -1044,8 +1044,7 @@ da_ret_t __handle_http_status_code(http_info_t *http_info,
        case 503:
        case 504:
        default:
-///            GET_REQUEST_HTTP_RESULT(request_info)
-///                    = DA_ERR_UNREACHABLE_SERVER;
+               ret = DA_ERR_UNREACHABLE_SERVER;
                DA_LOGI("set internal error code : DA_ERR_UNREACHABLE_SERVER");
                break;
        }