mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
HTTP REST: minor fixes
1) const-ify internal helper ParseHashStr() 2) use HTTPError() helper when returning HTTP_NOT_FOUND
This commit is contained in:
parent
9445b876bd
commit
7715c84747
2 changed files with 3 additions and 3 deletions
|
|
@ -957,7 +957,7 @@ void ServiceConnection(AcceptedConnection *conn)
|
|||
break;
|
||||
|
||||
} else {
|
||||
conn->stream() << HTTPReply(HTTP_NOT_FOUND, "", false) << std::flush;
|
||||
conn->stream() << HTTPError(HTTP_NOT_FOUND, false) << std::flush;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue