Fix hardcoded "always read from stdin" problem
This commit is contained in:
parent
5de2dfbe70
commit
3dcbd48067
1 changed files with 1 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue