aboutsummaryrefslogtreecommitdiff
path: root/src/rest.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-12-17 17:34:20 +0100
committerWladimir J. van der Laan <[email protected]>2014-12-17 18:13:28 +0100
commit89802fe3eea857bae3a4f4f393de92af0915facd (patch)
tree90ca518364768b73da454b6f782130e13fd48ef3 /src/rest.cpp
parentMerge pull request #5488 (diff)
parentmake all catch() arguments const (diff)
downloaddiscoin-89802fe3eea857bae3a4f4f393de92af0915facd.tar.xz
discoin-89802fe3eea857bae3a4f4f393de92af0915facd.zip
Merge pull request #5438
27df412 make all catch() arguments const (Philip Kaufmann)
Diffstat (limited to 'src/rest.cpp')
-rw-r--r--src/rest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest.cpp b/src/rest.cpp
index c52dbb3cd..304e1d747 100644
--- a/src/rest.cpp
+++ b/src/rest.cpp
@@ -307,7 +307,7 @@ bool HTTPReq_REST(AcceptedConnection* conn,
return uri_prefixes[i].handler(conn, strReq, mapHeaders, fRun);
}
}
- } catch (RestErr& re) {
+ } catch (const RestErr& re) {
conn->stream() << HTTPReply(re.status, re.message + "\r\n", false, false, "text/plain") << std::flush;
return false;
}