Mark `URI::archive()` const.

This commit is contained in:
tastytea 2019-10-27 20:38:58 +01:00
parent ff7b6338a0
commit 0a1396fc25
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ public:
*
* @since 0.6.0
*/
archive_answer archive();
archive_answer archive() const;
protected:
string _uri;

View File

@ -617,7 +617,7 @@ string URI::unescape_html(string html)
return html;
}
archive_answer URI::archive()
archive_answer URI::archive() const
{
if (_uri.substr(0, 4) != "http")
{