Enhancements

Add more HTTP status code with detailed error info.
Improve error handling with broken links.
Add basic support for extra response headers.
This commit is contained in:
Tindy X committed 2020-01-20 00:22:41 +08:00
1 parent d13788e1d1
commit 0c76741a25
6 files changed
+69 -40

No files matched your search

+5 -4
View File
@@ -1442,12 +1442,13 @@ int explodeConfContent(std::string content, std::string custom_port, int local_p
default:
//try to parse as a local subscription
explodeSub(content, sslibev, ssrlibev, custom_port, local_port, nodes, exclude_remarks, include_remarks);
if(nodes.size() == 0)
return SPEEDTEST_ERROR_UNRECOGFILE;
else
return SPEEDTEST_ERROR_NONE;
}
if(nodes.size() == 0)
return SPEEDTEST_ERROR_UNRECOGFILE;
else
return SPEEDTEST_ERROR_NONE;
iter = nodes.begin();
while(iter != nodes.end())
{