Fix variable initialization in extract_location().
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
438bc360cd
commit
cdb525205b
|
@ -262,7 +262,7 @@ string Document::remove_html(string html) const
|
|||
|
||||
string Document::extract_location(const curl_wrapper::answer &answer)
|
||||
{
|
||||
const string location = answer.get_header("Location");
|
||||
string location{answer.get_header("Location")};
|
||||
|
||||
if (location.empty())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user