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

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
1 changed files with 1 additions and 1 deletions

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