http_response: don't try to move temporary

This commit is contained in:
okaestne 2022-11-06 00:22:38 +01:00 committed by Oliver Kästner
parent 2970f81001
commit 9e7015281e

View File

@ -139,7 +139,7 @@ namespace crow
set_header("Content-Type", value.content_type); set_header("Content-Type", value.content_type);
} }
response(int code, returnable&& value): response(int code, returnable&& value):
code(code), body(std::move(value.dump())) code(code), body(value.dump())
{ {
set_header("Content-Type", std::move(value.content_type)); set_header("Content-Type", std::move(value.content_type));
} }