git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@69038
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
*
* This is used to, at any time, try to return the status code for a transmission.
* @param url_con Connection object
- * @return A valid HTTP STATUS code, or -1 on failure
+ * @return A valid HTTP STATUS code, or 0 on failure
*
* @since 1.2
*/
if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL))
{
ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, __func__);
- return -1;
+ return 0;
}
+ if (url_con->status) return url_con->status;
_ecore_con_url_status_get(url_con);
- return url_con->status ?: -1;
+ return url_con->status;
#else
return -1;
(void)url_con;