diff --git a/HTTPServer.cpp b/HTTPServer.cpp
index 86808e25..2d69ae7a 100644
--- a/HTTPServer.cpp
+++ b/HTTPServer.cpp
@@ -846,11 +846,13 @@ namespace util
if (ecode != boost::asio::error::operation_aborted)
{
auto leaseSet = i2p::client::context.GetSharedLocalDestination ()->FindLeaseSet (destination);
- if (leaseSet && !leaseSet->IsExpired ())
+ if (leaseSet && !leaseSet->IsExpired ()) {
SendToDestination (leaseSet, port, buf, len);
- else
- // still no LeaseSet
- SendReply (leaseSet ? "" + itoopieImage + "
\r\nLeases expired" : "" + itoopieImage + "LeaseSet not found", 504);
+ } else if (leaseSet) {
+ SendReply ("" + itoopieImage + "
\r\nLeaseSet expired", 504);
+ } else {
+ SendReply ("" + itoopieImage + "
\r\nLeaseSet not found", 504);
+ }
}
}