Fix hardcoded "always read from stdin" problem

This commit is contained in:
King_DuckZ 2020-02-18 14:58:25 +01:00
parent 5de2dfbe70
commit 3dcbd48067

View file

@ -85,7 +85,7 @@ namespace {
const auto url = vm["input-url"].as<std::string>();
duck::HtmlPool html_pool(std::string(parVarMap["agent"].as<std::string>()));
const auto in_html_id = html_pool.GetOrAdd("-");
const auto in_html_id = html_pool.GetOrAdd(url);
std::string html = *html_pool.GetByID(in_html_id);
if (vm.count("dump-raw")) {