From 0a1396fc25fcff55707b9b7c6369fb30745b3957 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 27 Oct 2019 20:38:58 +0100 Subject: [PATCH] Mark `URI::archive()` const. --- include/uri.hpp | 2 +- src/lib/uri.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uri.hpp b/include/uri.hpp index 90cb18b..54b2dce 100644 --- a/include/uri.hpp +++ b/include/uri.hpp @@ -101,7 +101,7 @@ public: * * @since 0.6.0 */ - archive_answer archive(); + archive_answer archive() const; protected: string _uri; diff --git a/src/lib/uri.cpp b/src/lib/uri.cpp index a976718..26fc179 100644 --- a/src/lib/uri.cpp +++ b/src/lib/uri.cpp @@ -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") {