Fix variable initialization in extract_location().
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tastytea 2020-11-21 22:43:41 +01:00
parent 438bc360cd
commit cdb525205b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -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())
{