Cleanup http_intf_command

This commit is contained in:
twinaphex 2015-01-19 03:43:29 +01:00
parent 51d97c3fbb
commit a9a2c7003b

View File

@ -107,5 +107,10 @@ int http_intf_command(unsigned mode, char *url)
free(http_server);
if (proxy)
free(http_proxy_server);
return ( (ret == 201) || (ret == 200) ) ? 0 : ret;
if (ret == 200)
return 0;
if (ret == 201)
return 0;
return ret;
}