Merge branch 'develop' into main
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-02-07 11:58:32 +01:00
commit 4f4f4dacad
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* This file is part of remwharead.
* Copyright © 2019 tastytea <tastytea@tastytea.de>
* Copyright © 2019, 2020 tastytea <tastytea@tastytea.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -216,7 +216,14 @@ string URI::make_request(const string &uri, bool archive) const
string answer;
if (archive)
{
answer = response.get("Content-Location");
if (response.has("Content-Location"))
{
answer = response.get("Content-Location");
}
else
{
answer = uri;
}
}
else
{